Part Number Hot Search : 
22200 80007 HFM203A RNA52 HMC637 0A24C150 1722IS5 S0400
Product Description
Full Text Search
 

To Download SX1231 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  SX1231 www.semtech.com page 1 advanced communica tions & sensing datasheet SX1231 transceiver low power integrated uhf transceiver rev 2 - nov 2009 the SX1231 is a highly integrated rf transceiver capable of operation over a wide frequency range, including the 433, 868 and 915 mhz license-free ism (industry scientific and medical) frequency bands. its hi ghly integrated architecture allows for a minimum of external components whilst maintaining maximum design flexibility. all major rf communication parameters are programmable and most of them can be dynamically set. the SX1231 offers the unique advantage of programmable narrow-band and wide-band communication modes without the need to modify external components. the SX1231 is optimized for low power consumption while offering high rf output power and channelized operation, suitable for both the european (etsi en 300-220-1) and the north american (fcc part 15) regulatory standards. truerf? technology enables a lowcost external component co unt (elimination of the saw filter) whilst still satisfying etsi and fcc regulations. ? automated meter reading ? wireless sensor networks ? home and building automation ? wireless alarm and security systems ? industrial monitoring and control ? high sensitivity: down to -120 dbm at 1.2 kbps ? high selectivity: 16-tap fir channel filter ? bullet-proof front end: iip3 = -18 dbm, iip2 = +35 dbm, 80 db blocking immunity, no image frequency response ? low current: rx = 16 ma, 100na register retention ? programmable pout: -18 to +17 dbm in 1db steps ? constant rf performance over voltage range of chip ? fsk bit rates up to 300 kb/s ? fully integrated synthesizer with a resolution of 61 hz ? fsk, gfsk, msk, gmsk and ook modulations ? built-in bit synchronizer performing clock recovery ? incoming sync word recognition ? 115 db+ dynamic range rssi ? automatic rf sense with ultra-fast afc ? packet engine with crc, aes- 128 encrypti on and 66- byte fifo ? built-in temperature sensor and low battery indicator ? qfn 24 package - operating range [-40;+85c] ? pb-free, halogen free, ro hs/weee compliant product general description applications key product features ordering information part number delivery moq / multiple SX1231imltrt tape & reel 3000 pieces lna single to differential mixers / modulators decimation and & filtering demodulator & bit synchronizer interpolation & filtering modulator packet engine & 66 bytes fifo control registers - shift registers - spi interface spi dio0 rssi afc division by 2, 4 or 6 frac-n pll synthesizer xo 32 mhz xtal pa0 pa1&2 tank inductor loop filter rfio pa_boost reset power distribution system vbat1&2 vr_ana vr_dig vr_pa ramp & control rc oscillator gnd rxtx gnd dio1 dio2 dio3 dio4 dio5 www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 2 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 table of contents page 1. general description ........................................................................................................ ........................................ 8 1.1. simplified block diagram ................................................................................................. ............................... 8 1.2. pin and marking diagram ................................................................................................. ............................... 9 1.3. pin description ......................................................................................................... ..................................... 10 2. electrical characteristics....................... .......................................................................... ...................................... 11 2.1. esd notice............................................................................................................... ..................................... 11 2.2. absolute maximum rating s ................................................................................................. ......................... 11 2.3. operating range.......................................................................................................... ................................. 11 2.4. chip specification ....................................................................................................... .................................. 12 2.4.1. power consumption ...................................................................................................... ........................... 12 2.4.2. frequency synthesis .................................................................................................... ............................ 12 2.4.3. receiver ............................................................................................................... .................................... 13 2.4.4. transmitter ............................................................................................................ ................................... 14 2.4.5. digital specification ................................................................................................. ..................................15 3. chip description........................................................................................................... ......................................... 16 3.1. power supply strategy.................................................................................................... .............................. 16 3.2. low battery detector..................................................................................................... ................................ 16 3.3. frequency synthesis...................................................................................................... ............................... 16 3.3.1. reference oscillator ................................................................................................... .............................. 16 3.3.2. clkout output ......................................................................................................... ...............................17 3.3.3. pll architecture ....................................................................................................... ................................ 17 3.3.4. lock time ............................................................................................................. .....................................18 3.3.5. lock detect indicator.................................................................................................. .............................. 18 3.4. transmitter description ................................................................................................. ................................ 19 3.4.1. architecture description ............................................................................................... ............................ 19 3.4.2. bit rate setting ....................................................................................................... ................................. 19 3.4.3. fsk modulation ......................................................................................................... ............................... 20 3.4.4. ook modulation ......................................................................................................... .............................. 20 3.4.5. modulation shaping..................................................................................................... ............................. 21 3.4.6. power amplifiers ....................................................................................................... ............................... 21 3.4.7. over current protection ................................................................................................ ........................... 21 3.5. receiver description .................................................................................................... ................................. 22 3.5.1. block diagram .......................................................................................................... ................................ 22 3.5.2. lna - single to differential buffer ..... ............................................................................... ........................ 22 3.5.3. automatic gain control ................................................................................................. ........................... 23 3.5.4. quadrature mixer - adcs - decimators................................................................................... ................. 24 3.5.5. channel filter ......................................................................................................... .................................. 25 3.5.6. dc cancellation ........................................................................................................ ............................... 26 3.5.7. complex filter - ook ................................................................................................... ............................ 26 3.5.8. rssi ................................................................................................................... ...................................... 26 www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 3 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 3.5.9. cordic ................................................................................................................. ...................................... 26 3.5.10. fsk demodulator ....................................................................................................... ............................ 27 3.5.11. ook demodulator ....................................................................................................... ........................... 27 3.5.12. bit synchronizer ...................................................................................................... ............................... 29 3.5.13. frequency error indicator.................... ......................................................................... .......................... 30 3.5.14. automatic frequency correction ............ ............................................................................ .................... 31 3.5.15. temperature sensor ........................... ......................................................................... .......................... 31 3.5.16. timeout function...................................................................................................... .............................. 32 4. operating modes ............................................................................................................ ...................................... 33 4.1. basic modes.............................................................................................................. .................................... 33 4.2. automatic se quencer and wake-up times ..................... ............................................................... .............. 33 4.2.1. transmitter startup time............................................................................................... ............................ 34 4.2.2. tx start procedure ..................................................................................................... .............................. 34 4.2.3. receiver startup time.................................................................................................. ............................ 34 4.2.4. rx start procedure ..................................................................................................... .............................. 36 4.2.5. optimized frequency hopping sequences .... .............................................................................. ............ 36 4.3. listen mode ............................................................................................................. ...................................... 37 4.4. automodes ................................................................................................................ .................................... 40 5. data processing............................................................................................................ ........................................ 41 5.1. overview ................................................................................................................. ...................................... 41 5.1.1. block diagram .......................................................................................................... ................................ 41 5.1.2. data operation modes ................................................................................................... .......................... 41 5.2. control block description ................................................................................................ .............................. 42 5.2.1. spi interface.......................................................................................................... ................................... 42 5.2.2. fifo ................................................................................................................... ...................................... 43 5.2.3. sync word recognition .................................................................................................. .......................... 44 5.2.4. packet handler ......................................................................................................... ................................ 45 5.2.5. control ................................................................................................................ ...................................... 45 5.3. digital io pins mapping....................... ........................................................................... ............................... 45 5.3.1. dio pins mapping in continuous mode ...... .............................................................................. ............... 46 5.3.2. dio pins mapping in packet mode ........................................................................................ .................. 46 5.4. continuous mode .......................................................................................................... ................................ 47 5.4.1. general description.................................................................................................... .............................. 47 5.4.2. tx processing.......................................................................................................... ................................. 47 5.4.3. rx processing .......................................................................................................... ................................ 48 5.5. packet mode .............................................................................................................. ................................... 48 5.5.1. general description.................................................................................................... .............................. 48 5.5.2. packet format .......................................................................................................... ................................ 49 5.5.3. tx processing (without aes)................. ................ ................ ................ ................ ........... ........................ 51 5.5.4. rx processing (witho ut aes) ............ ................ ................. ................ ................ ............... ....................... 52 5.5.5. aes .................................................................................................................... ...................................... 52 5.5.6. packet filtering....................................................................................................... .................................. 54 www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 4 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 5.5.7. dc-free data mechanis ms ................................................................................................ ...................... 55 6. configuration and status registers ......................................................................................... ............................. 57 6.1. general description ...................................................................................................... ................................ 57 6.2. common configuration registers ........................................................................................... ...................... 60 6.3. transmitter registers ................................................................................................... ................................. 63 6.4. receiver registers....................................................................................................... ................................. 64 6.5. irq and pin mapping registers............................................................................................ ........................ 67 6.6. packet engine registers.................................................................................................. ............................. 69 6.7. temperature sensor regi sters ............................................................................................. ........................ 72 6.8. test registers ........................................................................................................... .................................... 72 7. application information ............................ ........................................................................ ..................................... 73 7.1. crystal resonator specification .......................................................................................... .......................... 73 7.2. reset of the chip ........................................................................................................ .................................. 73 7.2.1. por.................................................................................................................... ...................................... 73 7.2.2. manual reset .......................................................................................................... ..................................74 7.3. rc oscillator calibration................................................................................................ ............................... 74 7.4. reference design .................................. ....................................................................... ................................ 74 8. packaging information ...... ................................................................................................ .................................... 75 8.1. package outline drawing....................... ........................................................................... ............................ 75 8.2. recommended land patter n ................................................................................................. ....................... 75 8.3. thermal impedance ....................................................................................................... ............................... 76 8.4. tape & reel specification................................................................................................ ............................. 76 9. revision history ........................................................................................................... ......................................... 77 www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 5 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 index of figures page figure 1. block diagram ..................................................................................................... ........................................... 8 figure 2. pin diagram ....................................................................................................... ............................................. 9 figure 3. marking diagram ................................................................................................... ......................................... 9 figure 4. tcxo connection ................................................................................................... ..................................... 16 figure 5. transmitter block diagram ......................................................................................... .................................. 19 figure 6. receiver block diagr am ............................................................................................ ................................... 22 figure 7. agc thresholds settings ........................................................................................... .................................. 23 figure 8. cordic extraction ................................................................................................. ......................................... 27 figure 9. ook peak demodulator description .................................................................................. .......................... 27 figure 10. floor threshold optimization ..................................................................................... ................................ 28 figure 11. bit synchronizer description ..................................................................................... ................................. 29 figure 12. fei process ...................................................................................................... .......................................... 31 figure 13. temperature sensor response ...................................................................................... ........................... 32 figure 14. tx startup, fsk and ook .......................................................................................... ................................ 34 figure 15. rx startup - no agc, no afc ...................................................................................... .............................. 35 figure 16. rx startup - agc, no afc ......................................................................................... ................................ 35 figure 17. rx startup - agc and afc ......................................................................................... ............................... 35 figure 18. listen mode sequence (no wanted signal is received) .............................................................. ................ 37 figure 19. listen mode sequence (wanted signal is received) ................................................................. .................. 39 figure 20. auto modes of packet handler ........ ............................................................................. .............................. 40 figure 21. SX1231 data processing conceptual vi ew ........................................................................... .................... 41 figure 22. spi timing diagram (single access) ............................................................................... ........................... 42 figure 23. fifo and shift register (sr) ..................................................................................... ................................ 43 figure 24. fifolevel irq source behavior .... ................................................................................ .............................. 44 figure 25. sync word recognition ............................................................................................ .................................. 45 figure 26. continuous mode conceptual view .................................................................................. ......................... 47 figure 27. tx processing in continuous mode ................................................................................. ........................... 47 figure 28. rx processing in continuous mode ................................................................................. .......................... 48 figure 29. packet mode conceptual view ...................................................................................... ............................. 49 figure 30. fixed length packet format ....................................................................................... ............................... 50 figure 31. variable length packet format .................................................................................... .............................. 50 figure 32. unlimited length packet format ................................................................................... ............................. 51 figure 33. crc implementation ....................... ........................................................................ ................................... 55 figure 34. manchester encoding /decoding ..................................................................................... ............................ 56 figure 35. data whitening ................................................................................................... ........................................ 56 figure 36. por timing diagram ............................................................................................... .................................. 73 figure 37. manual reset timing diagram ........ .............................................................................. ............................. 74 figure 38. package outline drawing .......................................................................................... ................................. 75 figure 39. recommended land pattern ......................................................................................... ............................ 75 figure 40. tape & reel specification ........................................................................................ .................................. 76 www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 6 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 index of tables page table 1. SX1231 pinouts ...................................................................................................... ........................................ 10 table 2. absolute maximum ratings ................. ........................................................................... ................................ 11 table 3. operating range ..................................................................................................... ....................................... 11 table 4. power consumption specification ....... .............................................................................. ............................. 12 table 5. frequency synthesizer specification ................................................................................. ............................. 12 table 6. receiver specification .............................................................................................. ...................................... 13 table 7. transmitter specification ........................................................................................... ..................................... 14 table 8. digital specification ............................................................................................... ......................................... 15 table 9. bit rate examples ................................................................................................... ....................................... 20 table 10. power amplifier mode se lection truth table ......................................................................... ...................... 21 table 11. lna gain settings .................................................................................................. ...................................... 22 table 12. receiver performance summary .......... ............................................................................. ........................... 24 table 13. available rxbw settings ............................................................................................ ................................... 25 table 14. basic transceiver modes ............................................................................................ ................................. 33 table 15. range of durations in listen mode ... ............................................................................... ............................ 37 table 16. signal acceptance criteria in listen mode .......................................................................... ......................... 38 table 17. end of listen cycle actions ........................................................................................ .................................. 38 table 18. status of fifo when switching between diffe rent modes of the chip .................................................. ....... 44 table 19. dio mapping, continuous mode ....................................................................................... ........................... 46 table 20. dio mapping, packet mode ........................................................................................... .............................. 46 table 21. registers summary .................................................................................................. .................................... 57 table 22. common configuration registers ......... ............................................................................ ............................ 60 table 23. transmitter registers .............................................................................................. ..................................... 63 table 24. receiver registers ................................................................................................. ...................................... 64 table 25. irq and pin mapping registers ........ .............................................................................. ............................. 67 table 26. packet engine registers ............................................................................................ .................................. 69 table 27. temperature sensor registers ....................................................................................... .............................. 72 table 28. test registers ..................................................................................................... ......................................... 72 table 29. crystal specification .............................................................................................. ....................................... 73 table 30. revision history ................................................................................................... ......................................... 77 www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 7 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 acronyms bom bill of materials lsb least significant bit br bit rate msb most significant bit bw bandwidth nrz non return to zero ccitt comit consultatif international tlphonique et tlgraphique - itu ook on off keying crc cyclic redundancy check pa power amplifier dac digital to analog converter pcb printed circuit board etsi european telecommunications standards institute pll phase-locked loop fcc federal communications commission por power on reset fdev frequency deviation rbw resolution bandwidth fifo first in first out rf radio frequency fir finite impulse response rssi received signal strength indicator fs frequency synthesizer rx receiver fsk frequency shift keying saw surface acoustic wave gui graphical user interface spi serial peripheral interface ic integrated circuit sr shift register id identificator stby standby if intermediate frequency tx transmitter irq interrupt request uc microcontroller itu international telecommunication union vco voltage controlled oscillator lfsr linear feedback shift register xo crystal oscillator lna low noise amplifier xor exclusive or lo local oscillator www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 8 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 this product datasheet contains a detailed description of th e SX1231 performance and functionality. please consult the semtech website for the la test updates or errata. 1. general description the SX1231 is a single-chip integrated circuit ideally suited for today's high pe rformance ism band rf applications. the SX1231's advanced features set, including state of the art packet engine greatl y simplifies system design whilst the high level of integration reduces the external bom to a handful of passive decoupling and matching components. it is intended for use as high-performance, low-cost fsk and ook rf transceiver for robust frequency agile, half-duplex bi-directional rf links, and where stable and constant rf performance is required over the full operating range of the device down to 1.8v. the SX1231 is intended for applications over a wide frequen cy range, including the 433 mhz and 868 mhz european and the 902-928 mhz north american ism bands. coupled with a link budget in excess of 135 db, the advanced system features of the SX1231 include a 66 byte tx/rx fifo, configurable automatic packet handler, listen mode, temperature sensor and configurab le dios which greatly e nhance system flexibility whilst at the sa me time significantly reducing mcu requirements. the SX1231 complies with both etsi and fcc regulatory requirements and is available in a 5x 5 mm qfn 24 lead package 1.1. simplified block diagram figure 1. block diagram lna single to differential mixers / modulators decimation and & filtering demodulator & bit synchronizer interpolation & filtering modulator packet engine & 66 bytes fifo control registers - shift registers - spi interface rssi afc division by 2, 4 or 6 frac-n pll synthesizer xo 32 mhz xtal pa0 pa1&2 tank inductor loop filter rfio pa_boost reset gnd power distribution system vbat1&2 vr_ana vr_dig vr_pa ramp & control rc oscillator frequency synthesis receiver blocks transmitter blocks control blocks primarily analog primarily digital gnd spi dio0 rxtx dio1 dio2 dio3 dio4 dio5 www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 9 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 1.2. pin and marking diagram the following diagram shows the pin arrangement of the qfn package, top view. figure 2. pin diagram figure 3. marking diagram notes yyww refers to the date code xxxxxx refers to the lot number www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 10 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 1.3. pin description table 1 SX1231 pinouts number name type description 0 ground - exposed ground pad 1 vbat1 - supply voltage 2vr_ana - regulated supply voltage for analogue circuitry 3 vr_dig - regulated supply voltage for digital blocks 4xta i/o xtal connection 5xtb i/o xtal connection 6 reset i/o reset trigger input 7dio0 i/o digital i/o, software configured 8 dio1/dclk i/o digital i/o, software configured 9dio2/data i/o digital i/o, software configured 10 dio3 i/o digital i/o, software configured 11 dio4 i/o digital i/o, software configured 12 dio5 i/o digital i/o, software configured 13 vbat2 - supply voltage 14 gnd - ground 15 sck i spi clock input 16 miso o spi data output 17 mosi i spi data input 18 nss i spi chip select input 19 rxtx o rx/tx switch control: high in tx 20 gnd - ground 21 rfio i/o rf input / output 22 gnd - ground 23 pa_boost o optional high-power pa output 24 vr_pa - regulated supply for the pa www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 11 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 2. electrical characteristics 2.1. esd notice the SX1231 is a high performance r adio frequency device. it satisfies: ? class 2 of the jedec standard jesd22-a114-b (human body model) on all pins. ? class b of the jedec standard jesd22-a115-a (machine model) on all pins. ? class iv of the jedec standard jesd22-c101c (charged de vice model) on pins 2-3-21-23-24, class iii on all other pins. it should thus be handled with all the necessary esd precautions to avoid any permanent damage. 2.2. absolute maximum ratings stresses above the values listed below may cause permanent device failure. exposure to absolute maximum ratings for extended periods may af fect device reliability. table 2 absolute maximum ratings 2.3. operating range table 3 operating range symbol description min max unit vddmr supply voltage -0.5 3.9 v tmr temperature -55 +115 c tj junction temperature - +125 c pmr rf input level - +6 dbm symbol description min max unit vddop supply voltage 1.8 3.6 v top operational temperature range -40 +85 c clop load capacitance on digital ports - 25 pf ml rf input level - 0 dbm www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 12 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 2.4. chip specification the tables below give the electrical spec ifications of the transceiver under the following conditions: supply voltage vbat1= vbat2=vdd=3.3 v, temperature = 25 c, fxosc = 32 mhz, f rf = 915 mhz, pout = +13dbm, 2-level fsk modulation without pre-filtering, fda = 5 khz, bit rate = 4.8 kb/s an d terminated in a matched 50 ohm impedance, unless otherwise specified. note unless otherwise specified, the performances in the other frequency bands are similar or better. 2.4.1. power consumption table 4 power consumption specification 2.4.2. frequency synthesis table 5 frequency synthesizer specification symbol description conditions min typ max unit iddsl supply current in sleep mode - 0.1 1 ua iddidle supply current in idle mode rc oscillator enabled - 1.2 - ua iddst supply current in standby mode crystal oscillator enabled - 1.25 1.5 ma iddfs supply current in synthesizer mode -9-ma iddr supply current in receive mode - 16 - ma iddt supply current in transmit mode with appropriate matching, sta- ble across vdd range rfop = +17 dbm, on pa_boost rfop = +13 dbm, on rfio pin rfop = +10 dbm, on rfio pin rfop = 0 dbm, on rfio pin rfop = -1 dbm, on rfio pin - - - - - 95 45 33 20 16 - - - - - ma ma ma ma ma symbol description conditions min typ max unit fr synthesizer frequency range programmable 290 424 862 - - - 340 510 1020 mhz mhz mhz fxosc crystal oscillator frequency see section 7.1 - 32 - mhz ts_osc crystal oscillator wake-up time - 250 500 us ts_fs frequency synthesizer wake-up time to plllock signal from standby mode - 80 150 us ts_hop frequency synthesizer hop time at most 10 khz away from the target 200 khz step 1 mhz step 5 mhz step 7 mhz step 12 mhz step 20 mhz step 25 mhz step - - - - - - - 20 20 50 50 80 80 80 - - - - - - - us us us us us us us fstep frequency synthesizer step fstep = fxosc/2 19 -61.0 - hz www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 13 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 2.4.3. receiver all receiver tests are performed with rxbw = 10 khz (single side bandwidth) as programmed in regrxbw , receiving a pn15 sequence with a ber of 0.1% (bit synchronizer is e nabled), unless otherwise specified. the lna impedance is set to 200 ohms, by setting bit lnazin in reglna to 1, and the adclowpoweron in regtemp is set to 1. blocking tests are performed with an unmodulated interferer. the wanted signal power for the blocking immuni ty, acr, iip2, iip3 and amr tests is set 3 db above the nominal sensitivity level. table 6 receiver specification frc rc oscillator frequency after calibration - 62.5 - khz brf bit rate, fsk programmable 1.2 - 300 kbps bro bit rate, ook programmable 1.2 - 32.768 kbps fda frequency deviation, fsk programmable fda + brf/2 =< 500 khz 0.6 - 300 khz symbol description conditions min typ max unit rfs_f fsk sensitivity, highest lna gain fda = 5 khz, br = 1.2 kb/s fda = 5 khz, br = 4.8 kb/s fda = 40 khz, br = 38.4 kb/s - - - -118 -114 -105 - - - dbm dbm dbm fda = 5 khz, br = 1.2 kb/s * --120-dbm rfs_o ook sensitivity, highest lna gain br = 4.8 kb/s - -112 -109 dbm ccr co-channel rejection -13 -10 - db acr adjacent channel rejection offset = +/- 25 khz offset = +/- 50 khz - 37 42 42 - - db db bi blocking immunity offset = +/- 1 mhz offset = +/- 2 mhz offset = +/- 10 mhz - - - -45 -40 -32 - - - dbm dbm dbm blocking immunity wanted signal at sensitivity +16db offset = +/- 1 mhz offset = +/- 2 mhz offset = +/- 10 mhz - - - -36 -33 -25 - - - dbm dbm dbm amr am rejection , am modulated interferer with 100% modulation depth, fm = 1 khz, square offset = +/- 1 mhz offset = +/- 2 mhz offset = +/- 10 mhz - - - -45 -40 -32 - - - db db db iip2 2nd order input intercept point unwanted tones are 20 mhz above the lo lowest lna gain highest lna gain - - +75 +35 - - dbm dbm iip3 3rd order input intercept point unwanted tones are 1mhz and 1.995 mhz above the lo lowest lna gain highest lna gain - -23 +20 -18 - - dbm dbm bw_ssb single side channel filter bw programmable 2.6 - 500 khz www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 14 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 * set sensitivityboost in regt estlna to 0x2d to reduce the noise floor in the receiver 2.4.4. transmitter table 7 transmitter specification imr_ook image rejection in ook mode wanted signal level = -106 dbm 27 30 - db ts_re receiver wake-up time, from pll locked state to rxready rxbw = 10 khz, br = 4.8 kb/s rxbw = 200 khz, br = 100 kb/s - - 1.7 96 - - ms us ts_re_agc receiver wake-up time, from pll locked state, agc enabled rxbw = 10 khz, br = 4.8 kb/s rxbw = 200 khz, br = 100 kb/s -3.0 163 ms us ts_re_agc &afc receiver wake-up time, from pll lock state, agc and afc enabled rxbw = 10 khz, br = 4.8 kb/s rxbw = 200 khz, br = 100 kb/s 4.8 265 ms us ts_fei fei sampling time receiver is ready - 4.t bit -- ts_afc afc response time receiver is ready - 4.t bit -- ts_rssi rssi response time receiver is ready - 2.t bit -- dr_rssi rssi dynamic range agc enabled min max - - -115 0 - - dbm dbm symbol description conditions min typ max unit rf_op rf output power in 50 ohms on rfio pin programmable with 1db steps max min - - +13 -18 - - dbm dbm rf_oph max rf output power, on pa_boost pin with external match to 50 ohms - +17 - dbm rf_op rf output power stability fro m vdd=1.8v to 3.6v - +/-0.3 - db phn transmitter phase noise 50 khz offset from carrier 868 / 915 mhz bands 434 / 315 mhz bands - - -95 -99 - - dbc/ hz acp transmitter adjacent channel power (measured at 25 khz off- set) bt=0.5 . measurement conditions as defined by en 300 220-1 v2.1.1 ---37dbm ts_tr transmitter wake up time, to the first rising edge of dclk frequency synthesizer enabled, paramp = 8us, br = 4.8 kb/s. - 120 - us www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 15 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 2.4.5. digital specification conditions: temp = 25c, vdd = 3.3v, fxosc = 32 mhz, unless otherwise specified. table 8 digital specification symbol description conditions min typ max unit v ih digital input level high 0.8 - - vdd v il digital input level low - - 0.2 vdd v oh digital output level high imax = 1 ma 0.9 - - vdd v ol digital output level low imax = -1 ma - - 0.1 vdd f sck sck frequency - - 10 mhz t ch sck high time 50 - - ns t cl sck low time 50 - - ns t rise sck rise time - 5 - ns t fall sck fall time - 5 - ns t setup mosi setup time from mosi change to sck rising edge 30 - - ns t hold mosi hold time from sck rising edge to mosi change 60 - - ns t nsetup nss setup time from nss fa lling edge to sck rising edge 30 - - ns t nhold nss hold time from sck falling edge to nss rising edge, normal mode 30 - - ns t nhigh nss high time between spi accesses 20 - - ns t_data data hold and setup time 250 - - ns www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 16 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 3. chip description this section describes in depth the architecture of the SX1231 low-power, highly integrated transceiver. 3.1. power supply strategy the SX1231 employs an advanced power supply scheme, whic h provides stable operating characteristics over the full temperature and voltage range of operation. this includes th e full output power of +17dbm which is maintained from 1.8 to 3.6 v. the SX1231 can be powered from any low-noise voltage source via pins vbat1 and vbat2. decoupling capacitors should be connected, as suggested in the reference design, on vr_p a, vr_dig and vr_ana pins to ensure a correct operation of the built-in voltage regulators. 3.2. low battery detector a low battery detector is also included allowing the ge neration of an interrupt signal in response to passing a programmable threshold adjust able through the register reglowbat . the interrupt signal can be mapped to any of the dio pins, through the programmation of regdiomapping . 3.3. frequency synthesis the lo generation on the SX1231 is based on a state-of-the-art fractional-n pll. the pll is fully integrated with automatic calibration. 3.3.1. reference oscillator the crystal oscillator is the main timing reference of the SX1231 . it is used as a reference for the frequency synthesizer and as a clock for the digital processing. the xo startup time, ts_osc, depends on the actual xtal be ing connected on pins xta and xtb. when using the built- in sequencer, the SX1231 optimizes the startup time and auto matically triggers the pll when the xo signal is stable. to manually control the startup time, the us er should either wait for ts_osc max, or monitor the signal clkout which will only be made available on the output buffer when a stable xo oscillation is achieved. an external clock can be used to replace the crystal oscillat or, for instance a tight tolerance tcxo. to do so, bit 4 at address 0x59 should be set to 1, and the external clock has to be provided on xta (pin 4). xtb (pin 5) should be left open. the peak-peak amplitude of the input signal must never exceed 1.8 v. please consult your tcxo supplier for an appropriate value of decoupling capacitor, c d . figure 4. tcxo connection xta xtb 32 mhz tcxo nc op vcc gnd c d vcc www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 17 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 3.3.2. clkout output the reference frequency, or a fraction of it, can be provided on dio5 (pin 12) by modifying bits clkout in regdiomapping2 . two typical applications of the clkout output include: ? to provide a clock output for a companion processor, thus sa ving the cost of an addition al oscillator. clkout can be made available in any operation mode except sleep mode and is automatically enabled at power on reset. ? to provide an oscillator reference output . measurement of the clkout signal enab les simple software trimming of the initial crystal tolerance. note to minimize the current consumpti on of the SX1231, please ensure that t he clkout signal is disabled when not required. 3.3.3. pll architecture the frequency synthesizer generating the lo frequency for both the receiver and the transmitter is a fractional-n sigma- delta pll. the pll incorporates a third order loop capable of fast auto-calibration, and it has a fast switching-time. the vco and the loop filter are both fully integrated, removing the need for an external tight-tolerance, high-q inductor in the vco tank circuit. 3.3.3.1. vco the vco runs at 2, 4 or 6 times the rf frequency (respectively in the 915, 434 and 315 mhz bands) to reduce any lo leakage in receiver mode , to improve the quadratur e precision of the receiv er, and to reduce the pulling effects on the vco during transmission. the vco calibration is fully automated. a coarse adjustment is carried out at power on reset, and a fine tuning is performed each time the SX1231 pll is activated. automatic calib ration times are fully transparent to the end-user, as their processing time is included in the ts_te and ts_re specifications. 3.3.3.2. pll bandwidth the bandwidth of the SX1231 fractional-n pll is wide enough to allow for: ? high speed fsk modulation, up to 300 kb/s, inside the pll bandwidth ? very fast pll lock times, enabling both short startup and fast hop times required for frequency agile applications 3.3.3.3. carrier frequency and resolution the SX1231 pll embeds a 19-bit sigma-delta modulator and it s frequency resolution, constant over the whole frequency range, and is given by: the carrier frequency is programmed through regfrf , split across addresses 0x07 to 0x09: note the frf setting is split across 3 bytes. a change in the center frequenc y will only be taken into account when the least significant byte frflsb in regfrflsb is written. this allows for more complex modulation schemes such as m- ary fsk, where frequency modulation is achieved by changing the programmed rf frequency. f step f xosc 2 19 ---------------- = f rf f step frf 23 0 (,) = www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 18 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 3.3.4. lock time pll lock time ts_fs is a function of a number of technical factors, such as synthesized frequency, frequency step, etc. when using the built-in sequencer, the SX1231 optimizes the st artup time and automatically starts the receiver or the transmitter when the pll has locked. to manually contro l the startup time, the user should either wait for ts_fs max given in the specification, or monitor the signal pll lock detect in dicator, which is set when th e pll has is within its locking range. when performing an afc, which usually corrects very small frequency errors, the pll response time is approximately: in a frequency hopping scheme, the timings ts_hop given in the table of specifications give an order of magnitude for the expected lock times. 3.3.5. lock detect indicator a lock indication signal can be made available on some of the dio pins, and is toggled high when the pll reaches its locking range. please refer to table 19 and table 20 to map this interrupt to the desired pins. t pllafc 5 pllbw ------------------- - = www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 19 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 3.4. transmitter description the transmitter of SX1231 comprises the frequency synthesizer, modulator and power amplifier blocks. 3.4.1. architecture description figure 5. transmitter block diagram 3.4.2. bit rate setting when using the SX1231 in continuous mode, the data stream to be transmitted can be input directly to the modulator via pin 9 (dio2/data) in an asynchronous ma nner, unless gaussian filtering is used, in which case the dclk signal on pin 10 (dio1/dclk) is used to synchronize the data stream. see section 3.4.5 fo r details on the gaussian filter. in packet mode or in continuous mode wit h gaussian filtering enabled (refer to sect ion 5.5 for details), the bit rate (br) is controlled by bits bitrate in regbitrate : amongst others, the following bit rates are accessible: lna receiver chain rfio local oscillator pa0 pa1 pa2 pa_boost br f xosc bitrate ------------------- - = www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 20 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 table 9 bit rate examples 3.4.3. fsk modulation fsk modulation is performed inside the pll bandwidth, by chan ging the fractional divider ratio in the feedback loop of the pll. the large resolution of the sigma-delta modulator, a llows for very narrow freque ncy deviation. the frequency deviation fdev is given by: to ensure a proper modulation, the following limit applies: note no constraint applies to the modulation index of the transmitter, but the frequency deviation must exceed 600 hz. 3.4.4. ook modulation ook modulation is applied by switching on and off the powe r amplifier. digital control and smoothing are available to improve the transient power response of the ook transmitter. type bitrate (15:8) bitrate (7:0) (g)fsk (g)msk ook actual br (b/s) classical modem baud rates (multiples of 1.2 kbps) 0x68 0x2b 1.2 kbps 1.2 kbps 1200.015 0x34 0x15 2.4 kbps 2.4 kbps 2400.060 0x1a 0x0b 4.8 kbps 4.8 kbps 4799.760 0x0d 0x05 9.6 kbps 9.6 kbps 9600.960 0x06 0x83 19.2 kbps 19.2 kbps 19196.16 0x03 0x41 38.4 kbps 38415.36 0x01 0xa1 76.8 kbps 76738.60 0x00 0xd0 153.6 kbps 153846.1 classical modem baud rates (multiples of 0.9 kbps) 0x02 0x2c 57.6 kbps 57553.95 0x01 0x16 115.2 kbps 115107.9 round bit rates (multiples of 12.5, 25 and 50 kbps) 0x0a 0x00 12.5 kbps 12.5 kbps 12500.00 0x05 0x00 25 kbps 25 kbps 25000.00 0x80 0x00 50 kbps 50000.00 0x01 0x40 100 kbps 100000.0 0x00 0xd5 150 kbps 150234.7 0x00 0xa0 200 kbps 200000.0 0x00 0x80 250 kbps 250000.0 0x00 0x6b 300 kbps 299065.4 watch xtal frequency 0x03 0xd1 32.768 kbps 32.768 kbps 32753.32 f dev f step fdev 13 0 (,) = f dev br 2 ------- 500 khz + www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 21 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 3.4.5. modulation shaping modulation shaping can be applied in both ook and fsk modulation modes, to improve the narrowband response of the transmitter. both shaping features are controlled with paramp bits in regparamp . ? in fsk mode, a gaussian filter with bt = 0.3, 0.5 or 1 is used to filter the modulation stream, at the input of the sigma- delta modulator. if the gaussian filter is enabled when the SX1231 is in c ontinuous mode, dclk signal on pin 10 (dio1/dclk) will trigger an interr upt on the uc each time a new bit has to be transmitted. please refer to section 5.4.2 for details. ? when ook modulation is used, the pa bias voltages are ra mped up and down smoothly when the pa is turned on and off, to reduce spectral splatter. note the transmitter must be restarted if the paramp setting is changed, in order to recalibrate the built-in filter. 3.4.6. power amplifiers three power amplifier blocks are embedded in the SX1231. the first one, herein referred to as pa0, can generate up to +13 dbm into a 50 ohm load. pa0 shares a common front-end pin rfio (pin 21) with the receiver lna. pa1 and pa2 are both connected to pin pa_boost (p in 23), allowing for two distinct power ranges: ? a low power mode, where -18 dbm < pout < 13 dbm, with pa1 enabled ? a higher power mode, when pa1 and pa2 are combined, providing up to +17 dbm to a matched load. when pa1 and pa2 are combined to deliver +17 dbm to the an tenna, a specific impedance matching / harmonic filtering design is required to ensure impedance transformation and regulatory compliance. all pa settings are controlled by regpalevel , and the truth table of settings is given in table 10. table 10 power amplifier mode selection truth table notes - to ensure correct operation at the highest power leve ls, please make sure to adjust the over current protection limit accordingly in regocp. - if pa_boost pin is not used (+13dbm applications and less), the pin can be left floating. 3.4.7. over current protection an over current protection block is built-in the chip. it helps preventing surge currents require d when the transmitter is used at its highest power levels, thus protecting the battery th at may power the application. the current clamping value is controlled by ocptrim bits in regocp , and is calculated with the following formula: pa0on pa1on pa2on mode power range pout formula 100 pa0 output on pin rfio -18 to +13 dbm -18 dbm + outputpower 0 1 0 pa1 enabled on pin pa_boost -18 to +13 dbm -18 dbm + outputpower 0 11 pa1 and pa2 combined on pin pa_boost -14 to +17 dbm -14 dbm + outputpower other combinations reserved imax 45 5 ocptrim ma () + = www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 22 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 3.5. receiver description the SX1231 features a digital receiver wit h the analog to digital conversion proc ess being performed di rectly following the lna-mixers block. the zero-if receiver is able to handle (g)fsk and (g)msk modulation. ask and ook modulation is, however, demodulated by a low-if architecture. all the filter ing, demodulation, gain control, synchronization and packet handling is performed digitally, which allows a very wide range of bit rates and frequency deviations to be selected. the receiver is also capable of automa tic gain calibration in order to im prove precision on rssi measurements. 3.5.1. block diagram figure 6. receiver block diagram the following sections give a brief description of each of the receiver blocks. 3.5.2. lna - single to differential buffer the lna uses a common-gate topology, which allows for a fl at characteristic over the whole frequency range. it is designed to have an input impedance of 50 oh ms or 200 ohms (as selected with bit lnazin in reglna) , and the parasitic capacitance at the lna input port is cance lled with the external rf choke. a single to differential buffer is implemented to improve the second order linearity of the receiver. the lna gain, including the single-to-differential buffer, is programmable over a 48 db dyna mic range, and control is either manual or automatic with th e embedded agc function. note in the specific case where the lna ga in is manually set by the user, the rece iver will not be able to properly handle fsk signals with a modulation index smaller than 2 at an input power greater than the 1db compression point, tabulated in section 3.5.3. table 11 lna gain settings lnagainselect lna gain gain setting 000 any of the below, set by the agc loop - 001 max gain g1 010 max gain - 6 db g2 011 max gain - 12 db g3 100 max gain - 24 db g4 101 max gain - 36 db g5 110 max gain - 48 db g6 111 reserved - lna single to differential mixers / modulators decimator rssi afc rfio fsk demodulator from pa1 local oscillator channel fil ter dc cancellation rx calibration reference bypassed in fsk phase output module output complex fi lter cordic ook demodulator processing agc www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 23 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 the current consumption of the lna can be reduced at the expense of its performance by setting the bit lnalowpoweron in reglna. in the same way the consumption of the ad converter can be reduced by setting adclowpoweron in regtemp1 . 3.5.3. automatic gain control by default ( lnagainselect = 000 ), the lna gain is controlled by a digital agc loop in order to obtain the optimal sensitivity/ linearity trade-off. regardless of the data transfer mode (packet or continuous ), the following series of event s takes place when the receiver is enabled: ? the receiver stays in wait mode, until rssivalue exceeds rssithreshold for two consecutive samples. its power consumption is the receiver power consumption. ? when this condition is satisfied, the receiver automatically selects the most suitable lna gain, optimizing the sensitivity/ linearity trade-off. ? the programmed lna gain, read-accessible with lnacurrentgain in reglna , is carried on for the whole duration of the packet, until one of the followi ng conditions is fulfilled: ? packet mode: if autorxrestarton = 0, the lna gain will remain the same for th e reception of the following packet. if autorxrestarton = 1 , after the controller has emptie d the fifo the receiver will re- enter the wait mode described above, after a delay of interpacketrxdelay , allowing for the distant transmitter to ramp down, hence avoiding a false rssi detection. ? continuous mode: upon reception of valid data, the user can decide to either leave the receiver enabled with the same lna gain, or to restart the procedure, by setting restartrx bit to 1, resuming the wait mode of the receiver, described above. notes - the first rssi sample exceedin g rssithreshold must be confirmed by a second one sample, unless fastrx in regrssiconfig is set to 1. - the agc procedure must be performed while receiving preamble in fsk mode - in ook mode, the agc will give better results if performed while re ceiving a constant ?1? sequence the following figure illustrate s the different agc settings available in the registers regagcref, regagcthresh1 and regagcthresh2: figure 7. agc thresholds settings agcstep settings can be user modified in both automatic and manual agcreference modes, but the default values give good results. towards -125 dbm ? a g c r e f e r e n c e ? a g c t h r e s h 1 ? a g c t h r e s h 2 ? a g c t h r e s h 3 ? a g c t h r e s h 4 pin [dbm] ? a g c t h r e s h 5 agcstep1 agcstep2 agcstep3 agcstep4 agcstep5 g1 g2 g3 g4 g5 g6 higher sensitivity lower linearity lower noise figure lower sensitivity higher linearity higher noise figure www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 24 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 the following table summarizes the performance (typical figures) of the complete receiver: table 12 receiver performance summary 3.5.3.1. rssithreshold setting for correct operation of the agc, rssithreshold in regrssithresh must be set to the sensit ivity of the receiver. the receiver will remain in wait mode until rssithreshold is exceeded. 3.5.3.2. agc reference setting by default, the agc reference le vel is automatically computed ( agcautoreferenceon = 1 ), according to: agc reference [dbm] = -174 + nf + demodsnr +10.log(2* rxbw ) + agcsnrmargin [dbm] with: ? nf = 7db: lna?s noise figure at maximum gain ? demodsnr = 8 db: snr needed by the demodulator ? rxbw : single sideband channel filter bandwidth ? agcsnrmargin : in db, set in regagcthresh1 fading margin can be adjusted through agcsnrmargin . sufficient margin must be taken to ensure reliable operation of the SX1231 receiver, when the incoming signal level du ring the rssi evaluation (wait mode) is close to agcthresh1 . note when the agc reference level is manually set by the user (agcautoreferenceon=0) with agcreferencelevel in regagcref, the user should manually account for its optimal fading margin. 3.5.4. quadrature mixer - adcs - decimators the mixer is inserted between output of the rf buffer stage and the input of the analog to digital converter (adc) of the receiver section. this block is designed to translate the spectr um of the input rf signal to base-band, and offer both high iip2 and iip3 responses. in the lower bands of operation (290 to 510 mhz), the multi- phase mixing architecture with weighted phases improves the rejection of the lo harmonics in receiver mode, hence incr easing the receiver immunity to out-of-band interferers. the i and q digitalization is made by two 5 th order continuous-time sigma-delta anal og to digital converters (adc). their gain is not constant over temperature, but the whole receiver is calibrated before reception, so that this inaccuracy has no input power pin gain setting receiver performance (typ) p -1db [dbm] nf [db] iip3 [dbm] iip2 [dbm] pin < agcthresh1 g1 -37 7 -18 +35 agcthresh1 < pin < agcthresh2 g2 -31 13 -15 +40 agcthresh2 < pin < agcthresh3 g3 -26 18 -8 +48 agcthresh3 < pin < agcthresh4 g4 -14 27 -1 +62 agcthresh4 < pin < agcthresh5 g5 >-6 36 +13 +68 agcthresh5 < pin g6 >0 44 +20 +75 www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 25 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 impact on the rssi precision. the adc output is one bit per channel. it needs to be decimated and filtered afterwards. this adc can also be used for temperature measurement, please refer to section 3.5.15 for more details. the decimators decrease the sample rate of the incoming si gnal in order to optimize the area and power consumption of the following receiver blocks. 3.5.5. channel filter the role of the channel filter is to filt er out the noise and interferers outside of the channel. channel filtering on the sx12 31 is implemented with a 16-tap finite impulse response (fir) filter, providing an outstandi ng adjacent chan nel rejection performance, even for narrowband applications. note to respect oversampling rules in the decimation chain of the receiver, the bit rate cannot be set at a higher value than 2 times the single-side receiv er bandwidth (bit rate < 2 x rxbw) the single-side channel filter bandwidth rxbw is controlled by the parameters rxbwmant and rxbwexp in regrxbw: ? when fsk modulation is enabled: ? when ook modulation is enabled: the following channel filter b andwidths are accessible (oscilla tor is mandated at 32 mhz): table 13 available rxbw settings rxbwmant (binary/value) rxbwexp (decimal) rxbw (khz) fsk modulationtype=00 ook modulationtype=01 10b / 24 7 2.6 1.3 01b / 20 7 3.1 1.6 00b / 16 7 3.9 2.0 10b / 24 6 5.2 2.6 01b / 20 6 6.3 3.1 00b / 16 6 7.8 3.9 10b / 24 5 10.4 5.2 01b / 20 5 12.5 6.3 00b / 16 5 15.6 7.8 10b / 24 4 20.8 10.4 01b / 20 4 25.0 12.5 00b / 16 4 31.3 15.6 10b / 24 3 41.7 20.8 01b / 20 3 50.0 25.0 00b / 16 3 62.5 31.3 10b / 24 2 83.3 41.7 01b / 20 2 100.0 50.0 rxbw fxosc rxbwmant 2 rxbwexp 2 + ----------------------------------------------------------------- - = rxbw fxosc rxbwmant 2 rxbwexp 3 + ----------------------------------------------------------------- - = www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 26 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 3.5.6. dc cancellation dc cancellation is required in zero-if architecture transceivers to remove any dc offset generate d through self-reception. it is built-in the SX1231 and its adjustable cutoff frequency fc is controlled in regrxbw : the default value of dccfreq cutoff frequency is typically 4% of the rxbw (channel filter bw). the cutoff frequency of the dcc can however be increased to slightly im prove the sensitivity, under wider modulation condit ions. it is advised to adjust the dcc setting while monitori ng the receiver sensitivity. 3.5.7. complex filter - ook in ook mode the SX1231 is modified to a lo w-if architecture. the if frequency is automatically set to half the single side bandwidth of the channel filter (f if = 0.5 x rxbw ). the local oscillator is automatically offset by the if in the ook receiver. a complex filter is implemented on the chip to attenu ate the resulting image frequency by typically 30 db. note this filter is au tomatically bypassed when receivin g fsk signals (modulationtype = 00 in regdatamodul). 3.5.8. rssi the rssi block evaluates the amount of en ergy available within the receiver channel bandwidth. its resolution is 0.5 db, and it has a wide dynamic range to accommodate both small an d large signal levels that may be present. its acquisition time is very short, taking only 2 bit periods. the rssi sampli ng must occur during the reception of preamble in fsk, and constant ?1? reception in ook. note the receiver is capable of automatic gain calibration, in order to improve the precision of its rssi measurements. this function injects a known rf signal at the lna in put, and calibrates the receiver gain accordingly. this calibration is automatically performed during the pll star t-up, making it a transparent process to the end-user. 3.5.9. cordic the cordic task is to extract the phase and the amplitude of the modulation vect or (i+j.q). this information, still in the digital domain is used: ? phase output: used by the fsk demodulator and the afc blocks. ? amplitude output: used by the rssi block, for fsk demo dulation, agc and automatic gain calibration purposes. 00b / 16 2 125.0 62.5 10b / 24 1 166.7 83.3 01b / 20 1 200.0 100.0 00b / 16 1 250.0 125.0 10b / 24 0 333.3 166.7 01b / 20 0 400.0 200.0 00b / 16 0 500.0 250.0 fc 4 rxbw 2 2 dccfreq 2 + ----------------------------------------- - = www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 27 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 figure 8. cordic extraction 3.5.10. fsk demodulator the fsk demodulator of the SX1231 is designed to demodulate fsk, gfsk, msk and gmsk modulated signals. it is most efficient when the modulation index of the signal is greater than 0.5 and below 10: the output of the fsk demodulator can be fed to the bit sync hronizer (described in section 3.5.12), to provide the companion processor with a synchronous data stream in continuous mode. 3.5.11. ook demodulator the ook demodulator performs a comparison of the rssi outpu t and a threshold value. three different threshold modes are available, configured through bits ookthreshtype in regookpeak . the recommended mo de of operation is th e "peak" threshold mode, illustrated in figure 9: figure 9. ook peak demodulator description i(t) q(t) real-time phase real-time magnitude 0.5 2 f dev br ---------------------- 10 = zoom period as defined in ookpeakthreshdec decay in db as defined in ookpeakthreshstep fixed 6db difference rssi [dbm] noise floor of receiver ??floor?? threshold defined by ookfixedthresh time ??peak -6db?? threshold zoom www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 28 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 in peak threshold mode the comparison threshold level is the peak value of the rssi, reduced by 6db. in the absence of an input signal, or during the reception of a logical "0", the acquired peak value is decremented by one ookpeakthreshstep every ookpeakthreshdec period. when the rssi output is null for a long time (for instance after a long string of "0" received, or if no transmitter is present ), the peak threshold level will continue falling until it reaches the "f loor threshold", programmed in ookfixedthresh . the default settings of the ook demodulator lead to the perfor mance stated in the electrical specification. however, in applications in which sudden signal drops are awaited duri ng a reception, the three parameters should be optimized accordingly. note for a correct operation of the peak threshold mode of the ook demodulator, set 0x0c at address 0x6e. 3.5.11.1. optimizing the floor threshold ookfixedthresh determines the sensitivity of the ook receiver, as it sets the comparison threshold for weak input signals (i.e. those close to the noise floor). significant sensitiv ity improvements can be gener ated if configured correctly. note that the noise floor of the receiver at the demodulator input depends on: ? the noise figure of the receiver. ? the gain of the receive chain from antenna to base band. ? the matching - including saw filter if any. ? the bandwidth of the channel filters. it is therefore important to note that the setting of ookfixedthresh will be application dependa nt. the following procedure is recommended to optimize ookfixedthresh . figure 10. floor threshold optimization set SX1231 in ook rx mode adjust bit rate, channel filter bw default ookfixedthresh setting no input signal continuous mode optimization complete glitch activity on data ? monitor dio2/data pin increment ookfixedthresh www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 29 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 the new floor threshold value found during this test shou ld be the value used for ook reception with those receiver settings. 3.5.11.2. optimizing ook demodulator for fast fading signals a sudden drop in signal strength can cause the bit error rate to increase. for applications where the expected signal drop can be estimated, the following ook demodulator parameters ookpeakthreshstep and ookpeakthreshdec can be optimized as described below for a given number of threshold decrements per bit. refer to regookpeak to access those settings. 3.5.11.3. alternative ook demodulator threshold modes in addition to the peak ook threshold mode, the user can alternatively select two other types of threshold detectors: ? fixed threshold: the value is selected through ookfixedthresh ? average threshold: data supplied by the rssi block is av eraged, and this operation mode should only be used with dc-free encoded data. 3.5.12. bit synchronizer the bit synchronizer is a block that provi des a clean and synchronized digital output, free of glitches. its output is made available on pin dio1/dclk in continuous mode and can be di sabled through register settings. however, for optimum receiver performance its use when running continuous mode is strongly advised. the bit synchronizer is automatically activated in packet mode. its bit rate is controlled by bitratemsb and bitratelsb in regbitrate. figure 11. bit synchronizer description to ensure correct operation of the bit synchronizer , the following conditions have to be satisfied: ? a preamble (0x55 or 0xaa) of 12 bits is required for synchronization (from the rxready interrupt) ? the subsequent payload bit stream must have at least one tran sition form '0' to '1' or '1' to '0 every 16 bits during data transmission raw demodulator output (fsk or ook) dclk data bitsync output to pin data and dclk in continuous mode www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 30 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 ? the bit rate matching between the transmitter and the receiver must be better than 6.5 %. notes - if the bit rates of transm itter and receiver are known to be the same, the sx1 231 will be able to receive an infinite unbalanced sequence (all ?0s? or all ?1s?) with no restriction. - if there is a difference in bit rate between tx and rx, the amount of adjacent bits at the same level that the bitsync can withstand can be estimated as follows: - this implies approximately 6 consecut ive unbalanced bytes when the bit rate precision is 1%, which is easily achievable (crystal tolerance is in the range of 50 to 100 ppm). 3.5.13. frequency error indicator this function provides information about the frequ ency error of the local oscillator (lo) compared with the carrier frequency of a modulated signal at the input of the receiver. when the fe i block is launched, the frequency error is measured and the signed result is loaded in feivalue in regfei , in 2?s complement format. the time required for an fei evaluation is 4 times the bit period. to ensure a proper behavior of the fei: ? the operation must be done during the reception of preamble ? the sum of the frequency offset and the 20 db signal b andwidth must be lower than the base band filter bandwidth the 20 db bandwidth of the signal can be evaluated as follows (double-side bandwidth): the frequency error, in hz, can be calculated with the following formula: bw 20 db 2 f dev br 2 ------- + ?? ?? = fei f step feivalue = www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 31 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 figure 12. fei process 3.5.14. automatic frequency correction the afc is based on the fei block, and therefore the same input signal and receiver setting conditions apply. when the afc procedure is done, afcvalue is directly subtracted to the register that defines the frequency of operation of the chip, f rf . the afc can be launched: ? each time the receiver is enabled, if afcautoon = 1 ? upon user request, by setting bit afcstart in regafcfei , if afcautoon = 0 when the afc is automatically triggered ( afcautoon = 1), the user has the option to: ? clear the former afc correction value, if afcautoclearon = 1 ? start the afc evaluation from the previously corrected frequen cy. this may be useful in sys tems in which the lo keeps on drifting in the ?same direction?. ageing compensation is a good example. the SX1231 offers an alternate receiver bandwidth setting during the afc phase, to accommodate large lo drifts. if the user considers that the received signal may be out of th e receiver bandwidth, a higher channel filter bandwidth can be programmed in regafcbw , at the expense of the receiver noise floor, whic h will impact upon sensitivity. 3.5.15. temperature sensor when temperature is measured, the receiv er adc is used to digitize the sens or response. most receiver blocks are disabled, and temperature measurement can only be triggered in standby or frequency synthesizer modes. the response of the temperature sensor is -1c / lsb. a cmos temperature sensor is not ac curate by nature, therefore it should be calibrated at ambient temperature for precise temperature readings. SX1231 in rx mode preamble-modulated input signal signal level > sensitivity set feistart = 1 feidone = 1 no yes read feivalue www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 32 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 figure 13. temperature sensor response 3.5.16. timeout function the SX1231 includes a timeout function, whic h allows it to automatica lly shut-down the receiver after a receive sequence and therefore save energy. ? timeout interrupt is generated timeoutrxstart x 8 x tbit after switching to rx mode if rssithreshold flag does not raise within this time frame ? timeout interrupt is generated timeoutrssithresh x 8 x tbit after rssithreshold flag has been raised. this timeout interrupt can be used to warn the companion processor to shut down the receiver and return to a lower power mode. -40 c +85 c tempvalue ambient returns 150d (typ.) needs calibration tt+1 tempvalue(t) tempvalue(t)-1 -1 c/lsb www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 33 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 4. operating modes 4.1. basic modes the circuit can be set in 5 different basic modes which are described in table 14. by default, when switching from a mode to another one, the sub-blocks are woken up according to a pre-defined and optimized sequence. alternatively, these operating modes can be selected directly by disabling the automatic sequencer ( sequenceroff in regopmode = 1 ). table 14 basic transceiver modes 4.2. automatic sequencer and wake-up times by default, when switching from one operat ing mode to another, the circuit takes care of the sequence of events in such a way that the transition timing is optimized. for example, w hen switching from sleep mode to transmit mode, the SX1231 goes first to standby mode (xo started), then to frequency synthesizer mode, and finally, when the pll has locked, to transmit mode. entering transmit mode is also made accordin g to a predefined sequence starting with the wake-up of the pa regulator before applying a ramp-up on the pa and generating the dclk clock. ? the crystal oscillator wake-up time, ts_osc , is directly related to the time for th e crystal oscillator to reach its steady state. it depends notably on the crystal characteristics. ? the frequency synthesizer wake-up time, ts _fs, is directly related to the time needed by the pll to reach its steady state. the signal pll_lock, provided on an external pin, give s an indication of the lock status. it goes high when the pll reaches its locking range. four specific cases can be highlighted: ? transmitter wake up time from sleep mode = ts_osc + ts_fs + ts_tr ? receiver wake up time from sleep mode = ts_osc + ts_fs + ts_re ? receiver wake up time from sleep mode, agc enabled = ts_osc + ts_fs + ts_re_agc ? receiver wake up time from sleep mode, agc and afc enabled = ts_osc + ts_fs + ts_re_agc&afc these timings are details in sections 4.2.1 and 4.2.3. in applications where the target average power consumption, or the target startup time, do not require setting the SX1231 in the lowest power modes (sleep or standby), the respective timings ts_osc and ts_fs in the former equations can be omited. listenon in regopmode mode in regopmode selected mode enabled blocks 0 0 0 0 sleep mode none 0 0 0 1 stand-by mode top regulator and crystal oscillator 0 0 1 0 fs mode frequency synthesizer 0 0 1 1 transmit mode frequency synthesizer and transmitter 0 1 0 0 receive mode frequency synthesizer and receiver 1 x listen mode see listen mode, section 4.3 www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 34 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 4.2.1. transmitter startup time the transmitter wake-up time, ts_tr, is given by the sequence c ontrolled by the digital part. it is a pure digital delay which depends on the bit rate and the ramp-up time. in fsk mode, this time can be derived from the following equation. , where paramp is the ramp-up time programmed in regparamp and tbit is the bit time. in ook mode, this equation can be simplified to the following: figure 14. tx startup, fsk and ook 4.2.2. tx start procedure as described in the former section, modeready and txready interrupts warn the uc that the transmitter is ready to transmit data ? in continuous mode , the preamble bits preceding the payload can be applied on the dio2/data pin immediately after any of these interrupts have fired. the dclk signal, activa ted on pin dio1/dclk can also be used to start toggling the data pin, as described on figure 27. ? in packet mode , the SX1231 will automatically modulate the rf signal with preamble bytes as soon as txready or modeready happen. the actual packet transmission (start ing with the number of preambles specified in preamblesize ) will start when the txstartcondition is fulfilled. 4.2.3. receiver startup time it is highly recommended to use the built -in sequencer of the SX1231, to optimi ze the delays when setting the chip in receive mode. it guarantees the shortest startup times, he nce the lowest possible energy usage, for battery operated systems. the startup times of the receiver can be calculated from the following: tbit paramp s tr ts + + = 2 1 25 . 1 5 _ tbit s tr ts + = analog group delay 0.5 x tbit 1.25 x paramp (only in fsk mode) xo started and pll is locked 5 us transmission of packet modeready txready ts_tr tx startup request (sequencer or user) www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 35 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 figure 15. rx startup - no agc, no afc figure 16. rx startup - agc, no afc figure 17. rx startup - agc and afc the different timings shown above are as follows: ? group delay of the analog front en d: tana = 10 us ? channel filter?s group delay in fsk mode: tcf = 21 / (4.rxbw) ? channel filter?s group delay in ook mode: tcf = 34 / (4.rxbw) ? dc cutoff?s group delay: tdcc = max(8 , 2^(round(log2(8.rxbw.tbit)+1)) / (4.rxbw) ? pll lock time after afc adjustment: tpllafc = 5 / pllbw (pllbw = 300 khz) ? afc sample time: tafc = 4 x tbit (also denoted ts _afc in the general specification) ? rssi sample time: trssi = 2 x int(4.rxbw.tbit)/(4.rxbw) (aka ts_rssi) analog fe?s group delay channel filter?s group delay dc cutoff?s group delay rssi sampling xo started and pll is locked tana rssi sampling tcf tdcc trssi trssi reception of packet modeready rxready ts_re rx startup request (sequencer or user) analog fe?s group delay channel filter?s group delay dc cutoff?s group delay rssi sampling xo started and pll is locked tana rssi sampling tcf tdcc trssi trssi reception of packet modeready rxready channel filter?s group delay dc cutoff?s group delay rssi sampling tcf tdcc trssi the lna gain is adjusted by the agc, according to the rssi result ts_re_agc rx startup request (sequencer or user) analog fe?s group delay channel filter?s group delay dc cutoff?s group delay rssi sampling xo started and pll is locked tana rssi sampling tcf tdcc trssi trssi reception of packet modeready rxready channel filter?s group delay dc cutoff?s group delay rssi sampling tcf tdcc trssi afc tafc pll lock tpllafc channel filter?s group delay tcf dc cutoff?s group delay tdcc ts_re_agc&afc rx startup request (sequencer or user) the lna gain is adjusted by the agc, according to the rssi result carrier frequency is adjusted by the afc www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 36 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 note for time-critical applications, a single rssi evaluation ca n be done prior to the reception (agc disabled), or prior to the agc procedure. this can be achieved by setting bit fastrx in regrssiconfig to 1, and saves the equivalent of 2 x tbit 4.2.4. rx start procedure as described in the former sections, the rxready interrupt warns the uc that the receiver is ready. ? in continuous mode with bit synchronizer , the receiver will start locking its bit sync hronizer on a minimum or 12 bits of received preamble (see section 3.5.12 for details), before th e reception of correct data, or sync word (if enabled) can occur. ? in continuous mode without bit synchronizer , valid data will be available on dio2/data right after the rxready interrupt. ? in packet mode , the receiver will start locking its bit synchronizer on a minimum or 12 bits of received preamble (see section 3.5.12 for details), before the reception of correct data, or sync word (if enabled) can occur. 4.2.5. optimized frequency hopping sequences in a frequency hopping-like application, it is required to tu rn off the transmitter when hopping from one channel to another, to avoid spectral splatter and obtain the best spectral purity. ? transmitter hop from ch a to ch b: it is advised to step through the rx mode: (0) SX1231 is in tx mode in ch a (1) program the SX1231 in rx mode (2) change the carrier frequency in the regfrf registers (3) wait for ts_hop (timing corresponding the fre quency offset, the plllock flag can also be used) (4) turn the transceiver back to tx mode (5) respect the tx start procedure, described in section 4.2.2 ? receiver hop from ch a to ch b: (0) SX1231 is in rx mode in ch a (1) program the SX1231 in fs mode (2) change the carrier frequency in the regfrf registers (3) wait for ts_hop (timing corresponding the fre quency offset, the plllock flag can also be used) (4) turn the transcei ver back to rx mode (5) respect the rx start procedu re, described in section 4.2.4 www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 37 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 4.3. listen mode the circuit can be set to listen mode, by setting listenon in regopmode to 1. in this mode, SX1231 spends most of the time in idle mode, during which only th e rc oscillator runs. periodically the rece iver is woken up and listens for an rf signal. if a wanted signal is detected, the receiver is kept on and the data is demodulated. otherwise, if a wanted signal hasn't been de tected after a pre-defined period of time , the receiver is disabled until the next time period. this periodical rx wake-up requirement is very common in low power applications. on SX1231 it is handled locally by the listen mode block without using uc resources or energy. the simplified timing diagram of this procedure is illustrated in figure 18. figure 18. listen mode sequence (no wanted signal is received) the duration of the idle phase is given by t listenidle . the time during which the receiver is on and waits for a signal is given by t listenrx . t listenrx includes the wake-up time of the receiver, de scribed in section 4.2.3. this duration can be programmed in the configuration registers via the serial interface. both time periods t listenrx and t listenidle (denoted t listenx in the following text) are fixe d by two parameters from the configuration register and are calculated as follows: where listenresol gives the rx/idle common resolution and is programmable on three values (1, 2 and 3), whereas listencoefx is an integer between 1 and 255. all parameters are located in reglisten registers. the timing ranges are tabulated in table 15 below. table 15 range of durations in listen mode listenresol min duration ( listencoef = 1 ) max duration ( listencoef = 255 ) 0101 64 us 16 ms 1010 4.1 ms 1.04 s 1111 0.26 s 67 s time t listenidle t listenrx t listenrx idle rx rx sol re listen x listencoef t listenx ? = www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 38 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 notes - the accuracy of the typical timings given in table 15 will depend in the rc oscillator calibration - rc oscillator calibration is requi red, and must be performed at po wer up. see section 7.3 for details - the default listenresol setting 1001 is reserved the criteria taken for detecting a wanted signal and henc e deciding to maintain the receiver on is defined by listencriteria in reglisten1. table 16 signal acceptance criteria in listen mode the action taken after detection of a packet, is defined by listenend in reglisten3 , as described in the table below. table 17 end of listen cycle actions listencriteria input signal power >= rssithreshold syncaddressmatch 0 required not required 1 required required listenend description 00 chip stays in rx mode. listen mode stops and must be disabled. 01 chip stays in rx mode until payloadready or timeout interrupt occurs. it then goes to the mode defined by mode . listen mode stops and must be disabled. 10 chip stays in rx mode until payloadready or timeout interrupt occurs. listen mode then resumes in idle state. fifo cont ent is lost at next rx wakeup. www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 39 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 upon detection of a valid packet, the sequencing is altered, as shown below: figure 19. listen mode sequence (wanted signal is received) for all three listenend settings (i.e. even for 00 and 01) disabling list en mode can be done anytime by writing all together in a single spi write command (same register) : ? listenon to 0 ? listenabort to 1 ? mode to the wanted operation mode payloadready listencriteria passed listen mode idle rx listen mode listen mode idle rx mode idle rx idle rx listenend = 00 listenend = 01 listenend = 10 www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 40 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 4.4. automodes automatic modes of packet handler can be enabled by configuring the related parameters in regautomodes . the intermediate mode of the chip is called intermediatemode and the enter and exit conditions to/from this intermediate mode can be configured through the parameters entercondition & exitcondition . the enter and exit conditions cannot be used independently of each other i.e. both should be enabled at the same time. the initial and the final state is the one configured in mode in regopmode . the initial & final states can be different by configuring the modes register while the chip is in intermediat e mode. the pictorial description of the auto modes is shown below. figure 20. auto modes of packet handler some typical examples of automodes usage are described below : ? automatic transmission (autotx) : mode = sleep, intermediatemode = tx, entercondition = fifolevel , exitcondition = packetsent ? automatic reception (autorx) : mode = rx, intermediatemode = sleep, entercondition = crcok , exitcondition = falling edge of fifonotempty ? automatic reception of acknowledge (autorxack): mode = tx, intermediatemode = rx, entercondition = packetsent , exitcondition = crcok ? ... initial state defined by m ode in regopmode intermediate state defined by intermediatemode exitcondition entercondition final state defined by m ode in regopmode www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 41 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 5. data processing 5.1. overview 5.1.1. block diagram figure below illustrates the sx123 1 data processing circuit. its role is to interface the data to/from the modulator/ demodulator and the uc access points (spi and dio pins ). it also controls all the configuration registers. the circuit contains several control blocks wh ich are described in the following paragraphs. figure 21. SX1231 data processing conceptual view the SX1231 implements several data operation modes, each with their own data path through the data processing section. depending on the data operation mode selected, some cont rol blocks are active whilst others remain disabled. 5.1.2. data operation modes the SX1231 has two different data operation modes selectable by the user: ? continuous mode: each bit transmitted or received is accessed in re al time at the dio2/data pin. this mode may be used if adequate external signal processing is available. ? packet mode (recommended): user only provides/retrieves payload bytes to/from the fifo. the packet is automatically built with preamble, sy nc word, and optional aes, crc, and dc-free en coding schemes the re verse operation is performed in reception. the uc proces sing overhead is hence significantly re duced compared to continuous mode. depending on the optional feat ures activated (crc, aes, etc) the maximum payload length is limited to fifo size, 255 bytes or unlimited. each of these data operation modes is described fully in the following sections. control spi packet handler sync recog. dio1 miso mosi sck nss rx tx tx/rx data fifo (+sr) potential datapaths (data operation mode dependant) dio2 dio0 dio3 dio4 dio5 www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 42 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 5.2. control block description 5.2.1. spi interface the spi interface gives access to the configuration register via a synchronous full-duplex pr otocol corresponding to cpol = 0 and cpha = 0 in motorola/freescale nome nclature. only the slave side is implemented. three access modes to the registers are provided: ? single access: an address byte followed by a data byte is sent for a write access whereas an address byte is sent and a read byte is received for the read access. the nss pin goes low at the begin of the frame and goes high after the data byte. ? burst access: the address byte is followed by several data bytes. the address is automati cally incremented internally between each data byte. this mode is available for both read and write accesses. the nss pin goes low at the beginning of the frame and stay low between each byte . it goes high only afte r the last byte transfer. ? fifo access: if the address byte corr esponds to the address of the fifo, then succeeding data byte will address the fifo. the address is not automatically incremented but is me morized and does not need to be sent between each data byte. the nss pin goes low at the beginning of the frame and stay low between each byte. it goes high only after the last byte transfer. figure below shows a typical spi single access to a register. figure 22. spi timing diagram (single access) mosi is generated by th e master on the falling edge of sck and is sample d by the slave (i.e. this spi interface) on the rising edge of sck. miso is generated by the slav e on the falling edge of sck. a transfer always starts by the nss pin going lo w. miso is high impedance when nss is high. the first byte is the address byte. it is made of: ? wnr bit, which is 1 for write access and 0 for read access ? 7 bits of address, msb first the second byte is a data byte, either se nt on mosi by the master in case of a write access, or received by the master on miso in case of read access. the data byte is transmitted msb first. proceeding bytes may be sent on mosi (for write access) or received on miso (for read access) without rising nss and re-sending the address. in fifo mode, if the address was the fifo address then the by tes will be written / read at the fifo address. in burst mode, if the address was not the fifo address, then it is automatic ally incremented at each new byte received. www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 43 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 the frame ends when nss goes high. the next frame must start with an address byte. the single access mode is actually a special case of fifo / burst mode with only 1 data byte transferred. during the write access, the byte transferred from the slave to the master on the miso line is the value of the written register before the write operation. 5.2.2. fifo 5.2.2.1. overview and shift register (sr) in packet mode of operation, both data to be transmitted and that has been received are stored in a configurable fifo (first in first out) device. it is acce ssed via the spi interface and provides several interrupts for transfer management. the fifo is 1 byte wide hence it only performs byte (paralle l) operations, whereas the demodulator functions serially. a shift register is therefore employed to interface the two device s. in transmit mode it takes bytes from the fifo and outputs them serially (msb first) at the programmed bit rate to the modu lator. similarly, in rx the sh ift register gets bit by bit data from the demodulator and writes th em byte by byte to the fifo. th is is illustrated in figure below. figure 23. fifo and shift register (sr) note when switching to sleep mode, the fifo can only be us ed once the modeready flag is set (quasi immediate from all modes except from tx) 5.2.2.2. size the fifo size is fixed to 66 bytes. 5.2.2.3. interrupt sources and flags ? fifonotempty : fifonotempty interrupt source is lo w when byte 0, i.e. wh ole fifo, is empty. otherwise it is high. note that when retrieving data from the fifo, fifonotempty is updated on nss fa lling edge, i.e. when fifonotempty is updated to low state the currently started read operation must be completed. in other words, fifonotempty state must be checked after each read operation for a decision on the next one ( fifonotempty = 1: more byte(s) to read; fifonotempty = 0: no more byte to read). ? fifofull : fifofull interrupt source is high when the last fifo byte , i.e. the whole fifo, is full. otherwise it is low. ? fifooverrunflag : fifooverrunflag is set when a new byte is written by the user (in tx or standby modes) or the sr (in rx mode) while the fifo is already full. da ta is lost and the flag sh ould be cleared by writing a 1, note that the fifo will also be cleared. ? packetsent : packetsent interrupt source goes high when the sr's last bit has been sent. ? fifolevel : threshold can be programmed by fifothreshold in regfifothresh . its behavior is illust rated in figure below. data tx/rx 8 1 sr (8bits) byte0 byte1 fifo msb lsb www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 44 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 figure 24. fifolevel irq source behavior note - fifolevel interrupt is updated only after a read or write operation on the fifo. thus the interrupt cannot be dynamically updated by only changing the fifothreshold parameter - fifolevel interrupt is valid as long as fifofull does not occur. an empty fifo will restor e its normal operation 5.2.2.4. fifo clearing table below summarizes the status of the fi fo when switching between different modes table 18 status of fifo when switching between different modes of the chip 5.2.3. sync word recognition 5.2.3.1. overview sync word recognition (als o called pattern recognition) is activated by setting syncon in regsyncconfig . the bit synchronizer must also be activated in continuo us mode (automatically done in packet mode) . the block behaves like a shift register; it continuously co mpares the incoming data with its internally programmed sync word and sets syncaddressmatch when a match is detected. this is illustrated in figure 25 below. from to fifo status comments stdby sleep not cleared sleep stdby not cleared stdby/sleep tx not cleared to allow the user to write the fifo in stdby/sleep before tx stdby/sleep rx cleared rx tx cleared rx stdby/sleep not cleared to allow the user to read fifo in stdby/sleep mode after rx tx any cleared # of bytes in fifo fifolevel 0 1 b b+1 www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 45 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 figure 25. sync word recognition during the comparison of the demodulated data, the fi rst bit received is compared with bit 7 (msb) of regsyncvalue1 and the last bit received is compared with bit 0 (lsb) of the la st byte whose address is determ ined by the length of the sync word. when the programmed sync word is detected the user can assu me that this incoming packet is for the node and can be processed accordingly. syncaddressmatch is cleared when leaving rx or fifo is emptied. 5.2.3.2. configuration ? size: sync word size can be set from 1 to 8 bytes (i.e. 8 to 64 bits) via syncsize in regsyncconfig . in packet mode this field is also used for sync word generation in tx mode. ? error tolerance: the number of errors tolerated in the sync word recognition can be set from 0 to 7 bits to via synctol . ? value: the sync word va lue is configured in syncvalue(63:0) . in packet mode this field is also used for sync word generation in tx mode. note syncvalue choices containing 0x00 bytes are not allowed 5.2.4. packet handler the packet handler is the block used in packet mode. its functionality is fully described in section 5.5. 5.2.5. control the control block configures and controls the full chip's beha vior according to the settings programmed in the configuration registers. 5.3. digital io pins mapping six general purpose io pins are available on the SX1231, and their configuration in continuous or packet mode is controlled through regdiomapping1 and regdiomapping2. rx data (nrz) dclk bit n-x = sync_value[x] bit n-1 = sync_value[1] bit n = sync_value[0] syncaddressmatch www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 46 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 5.3.1. dio pins mapping in continuous mode table 19 dio mapping, continuous mode 5.3.2. dio pins mapping in packet mode table 20 dio mapping, packet mode note received data is only shown on the data sign al between rxready and payloadready?s rising edges mode diox ma pp in g dio5 dio4 dio3 dio2 dio1 dio0 00 - - - - - - 01 - - - - - - 10 lowbat lowbat automode - - lowbat 11 modeready - - - - modeready 00 clkout - - - - - 01 - - - - - - 10 lowbat lowbat automode - - lowbat 11 modeready - - - - modeready 00 clkout - - - plllock plllock 01 - - - - plllock - 10 lowbat lowbat automode - plllock lowbat 11 modeready plllock - - plllock modeready 00 clkout timeout rssi data dclk syncaddress 01 rssi rxready rxready data rxready timeout 10 lowbat syncaddress automode data lowbat rssi 11 modeready plllock timeout data syncaddress plllock 00 clkout txready lowbat data dclk plllock 01 clkout txready lowbat data txready plllock 10 lowbat txready automode data lowbat plllock 11 modeready plllock txready data lowbat plllock tx fs rx sleep stdby mode diox ma pp in g dio5 dio4 dio3 dio2 dio1 dio0 00 - - fifofull fifonotempty fifolevel - 01 - - - - fifofull - 10 lowbat lowbat - - fifonotempty lowbat 11 modeready modeready - automode plllock modeready 00 clkout - fifofull fifonotempty fifolevel - 01 - - - - fifofull - 10 lowbat lowbat - - fifonotempty lowbat 11 modeready modeready - automode timeout modeready 00 clkout - fifofull fifonotempty fifolevel plllock 01 - - - - fifofull - 10 lowbat lowbat - - fifonotempty lowbat 11 modeready plllock - automode plllock modeready 00 clkout timeout fifofull fifonotempty fifolevel crcok 01 data rssi rssi data fifofull payloadready 10 lowbat rxready syncaddress lowbat fifonotempty syncaddress 11 modeready plllock plllock automode timeout rssi 00 clkout modeready fifofull fifonotempty fifolevel packetsent 01 data txready txready data fifofull txready 10 lowbat lowbat lowbat lowbat fifonotempty lowbat 11 modeready plllock plllock automode plllock plllock tx fs rx sleep stdby www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 47 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 5.4. continuous mode 5.4.1. general description as illustrated in figure 26, in continuous mode the nrz data to (from) the (de)modulator is direct ly accessed by the uc on the bidirectional dio2/data pin. the fifo and packet handler are thus inactive. figure 26. continuous mode conceptual view 5.4.2. tx processing in tx mode, a synchronous data clock for an external uc is provided on dio1/dclk pin. clo ck timing with respect to the data is illustrated in figure 27. data is internally sampled on the ri sing edge of dclk so th e uc can change logic state anytime outside the grayed out setup/hold zone. figure 27. tx processing in continuous mode note the use of dclk is required when the modula tion shaping is enabled (see section 3.4.5). control spi sync recog. dio1/dclk miso mosi sck nss rx tx/rx data dio2/data dio0 dio3 dio4 dio5 dclk t_data t_data data (nrz) www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 48 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 5.4.3. rx processing if the bit synchronizer is disabled, the raw demodulator output is made directly available on data pin and no dclk signal is provided. conversely, if the bit synchronizer is enabled, synchronous cleaned data and clock are made available respectively on dio2/data and dio1/dclk pins. data is sampled on the rising edge of dclk and updated on the falling edge as illustrated below. figure 28. rx processing in continuous mode note in continuous mode it is always recommended to enable the bit synchronizer to clean the data signal even if the dclk signal is not used by the uc (bit synchron izer is automatically enabled in packet mode). 5.5. packet mode 5.5.1. general description in packet mode the nrz data to (from) the (de)modulator is no t directly accessed by the uc but stored in the fifo and accessed via the spi interface. in addition, the SX1231 packet hand ler performs several pack et oriented tasks such as preamble and sync word generation, crc calculation/che ck, whitening/dewhitening of data, mancheste r encoding/decoding, address filtering, aes encryption/decryption, etc. this simpli fies software and reduces uc overhead by performing these r epetitive tasks within the rf chip itself. another important feature is ability to fill and empty the fi fo in sleep/stdby mode, ensu ring optimum power consumption and adding more flexib ility for the software. data (nrz) dclk www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 49 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 figure 29. packet mode conceptual view note the bit synchronizer is automa tically enabled in packet mode. 5.5.2. packet format 5.5.2.1. fixed length packet format fixed length packet format is selected when bit packetformat is set to 0 and payloadlength is set to any value greater than 0. in applications where the packet length is fixed in advance, this mode of operat ion may be of interest to minimize rf overhead (no length byte field is required). all nodes, whet her tx only, rx only, or tx/rx should be programmed with the same packet length value. the length of the payload is limited to 25 5 bytes if aes is not enabled else the message is limit ed to 64 bytes (i.e. max 65 bytes payload if address byte is enabled). the length programmed in payloadlength relates only to the pa yload which includes the message and the optional address byte. in this mode, the payload must contai n at least one byte, i.e. address or message byte. an illustration of a fixed length packet is shown below. it contains the following fields: ? preamble (1010...) ? sync word (network id) ? optional address byte (node id) ? message data ? optional 2-bytes crc checksum control spi packet handler sync recog. dio1 miso mosi sck nss rx tx data fifo (+sr) dio2 dio0 dio3 dio4 dio5 www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 50 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 figure 30. fixed length packet format 5.5.2.2. variable length packet format variable length packet format is selected when bit packetformat is set to 1. this mode is useful in applications where the length of the pa cket is not known in advance and can vary over time. it is then necessary for the transmitter to send the length information together with each packet in order for the receiver to operate properly. in this mode the length of the payload, indicated by the length byte, is given by the first by te of the fifo and is limited to 255 bytes if aes is not enabled else the message is limited to 64 bytes (i.e. max 66 bytes payload if address byte is enabled). note that the length by te itself is not included in its calculation. in this mode, the payload must contain at least 2 bytes, i.e. length + address or message byte. an illustration of a variable length packet is shown below. it contains the following fields: ? preamble (1010...) ? sync word (network id) ? length byte ? optional address byte (node id) ? message data ? optional 2-bytes crc checksum figure 31. variable length packet format message up to 255 bytes address byte crc 2-bytes sync word 0 to 8 bytes preamble 0 to 65535 bytes payload (min 1 byte) crc checksum calculation dc free data encoding fields added by the packet handler in tx and processed and removed in rx optional user provided fields which are part of the payload message part of the payload aes enc/dec message up to 255 bytes address byte length byte crc 2-bytes sync word 0 to 8 bytes preamble 0 to 65535 bytes payload (min 2 bytes) crc checksum calculation dc free data encoding fields added by the packet handler in tx and processed and removed in rx optional user provided fields which are part of the payload message part of the payload aes enc/dec www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 51 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 5.5.2.3. unlimited length packet format unlimited length packet format is selected when bit packetformat is set to 0 and payloadlength is set to 0. the user can then transmit and receive packet of arbitrary length and payloadlength register is not used in tx/rx modes for counting the length of the bytes transmitted/received. this mode is a replacement for the legacy buffered mode in sx1211/sx1212 transceivers. in tx the data is transmitted depending on the txstartcondition bit. on the rx side the data processing features like address filtering, manchester encoding and data whitening are not available if the sync pattern length is set to zero ( syncon = 0 ). the filling of the fifo in this case can be controlled by the bit fifofillcondition . the crc detection in rx is also not supported in this mode of the packet handler, howe ver crc generation in tx is operational. the interrupts like crcok & payloadready are not available either. an unlimited length packet shown in is made up of the following fields: ? preamble (1010...). ? sync word (network id). ? optional address byte (node id). ? message data ? optional 2-bytes crc checksum (tx only) figure 32. unlimited length packet format 5.5.3. tx processing (without aes) in tx mode the packet handler dynamically builds the pa cket by performing the following operations on the payload available in the fifo: ? add a programmable number of preamble bytes ? add a programmable sync word ? optionally calculating crc over complete payload field (optional length byte + optional address byte + message) and appending the 2 bytes checksum. ? optional dc-free encoding of the data (manchester or whitening) only the payload (including optional address and length fi elds) is required to be provided by the user in the fifo. message unlimited length address byte sync word 0 to 8 bytes preamble 0 to 65535 bytes payload fields added by the packet handler in tx and processed and removed in rx optional user provided fields which are part of the payload message part of the payload dc free data encoding www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 52 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 the transmission of packet data is initiated by the packet handler only if the chip is in tx mode and the transmission condition defined by txstartcondition is fulfilled. if transmission condition is not fulfilled then the packet handler transmits a preamble sequence until the cond ition is met. this happens only if the preamble length /= 0, otherwise it transmits a zero or one until the condition is me t to transmit the packet data. the transmission condition itself is defined as: ? if txstartcondition = 1, the packet handler waits until the first byte is written into the fifo, t hen it starts sending the preamble followed by the sync word and user payload ? if txstartcondition = 0, the packet handler waits until the number of bytes written in the fifo is equal to the number defined in regfifothresh + 1 ? if the condition for transmission was alre ady fulfilled i.e. the fifo was filled in sleep/stdby th en the transmission of packet starts immediately on enabling tx 5.5.4. rx processing (without aes) in rx mode the packet handler extracts the user payl oad to the fifo by performing the following operations: ? receiving the preamble and stripping it off ? detecting the sync word and stripping it off ? optional dc-free decoding of data ? optionally checking the address byte ? optionally checking crc and reflecting the result on crcok. only the payload (including optional address and length fields) is made available in the fifo. when the rx mode is enabled the demodulator receives the pr eamble followed by the detecti on of sync word. if fixed length packet format is enabled then the number of bytes received as the payload is given by the payloadlength parameter. in variable length mode the first byte receiv ed after the sync word is interpreted as the length of the received packet. the internal length counter is initializ ed to this received length. the payloadlength register is set to a value which is greater than the maximum expected length of the received packet. if th e received length is greater than the maximum length stored in payloadlength register the packet is discarded other wise the complete packet is received. if the address check is enabled then the second byte received in case of variable length and first byte in case of fixed length is the address byte. if the address matches to the one in the nodeaddress field, reception of the data continues otherwise it's stopped. the cr c check is performed if crcon = 1 and the result is available in crcok indicating that the crc was successful. an interrupt ( payloadready ) is also generated on dio0 as soon as the payload is available in the fifo. the payload available in the fifo can also be read in sleep/standby mode. if the crc fails the payloadready interrupt is not generated and the fifo is cleared. this function can be overridden by setting crcautoclearoff = 1, forcing the availability of payloadready interrupt and the payload in the fifo even if the crc fails. 5.5.5. aes aes is the symmetric-key block cipher that provides the cryptographi c capabilities to the transce iver. the syst em proposed can work with 128-bit long fixed keys. the fixed key is stored in a 16-byte write only user configuration register, which retains its value in sleep mode. www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 53 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 as shown in figure 30 and figure 31 above the message part of the packet can be encrypted and decrypted with the cipher 128- cipher key stored in the configuration registers. 5.5.5.1. tx processing 1. user enters the data to be transmitted in fifo in stdby/sleep mode and gives the transmit command. 2. on tx command the packet handler state machine takes over the control and if encryption is enabled then the message inside the fifo is read in blocks of 16 bytes (p added with 0s if needed), encrypted and stored back to fifo. all this processing is done in tx mode before enabling the packet handling state machine. only the message part of the packet is encrypted and preamble, sync word, length byte, address byte and crc are not encrypted. 3. once the encryption is done the packet handli ng state machine is enabled to transmit the data. 5.5.5.2. rx processing 1. the data received is stored in the fifo, the address , crc interrupts are generated as usual because these parameters were not encrypted. 2. once the complete packet has been received. the data is read from the fifo, decrypt ed and written back to fifo. the payloadready interrupt is issued once the decrypted data is re ady in the fifo for reading via the spi interface. the aes encryption/decrypt ion cannot be used on the fly i.e. while transmitting an d receiving data. thus when aes encryption/decryption is enabled, the fifo acts as a simple buf fer. this buffer is filled befo re initiating any transmission. the data in the buffer is then encrypted before the transmissi on can begin. on the receive side the decryption is initiated only once the complete packet has been received in the buffer. the encryption/decryption process takes appr oximately 7.0 us per 16-byte block. thus for a maximum of 4 blocks (i.e. 64 bytes) it can take up to 28 us for completing the cryptographic operations. the receive side sees the aes decryption time as a sequ ential delay before the payloadready interrupt is available. the tx side sees the aes encryption time as a sequential delay in the startup of the tx chain, thus the startup time of the tx will increase a ccording to the length of data. in fixed length mode the message part of the payload that can be encrypted/decrypted can be 64 bytes long. if the address filtering is enabled , the length of the payload should be at max 65 bytes in this case. in variable length mode the max message size that can be encrypted/decrypted is also 64 bytes when address filtering is disabled, else it is 48 bytes. thus, including length byte, th e length of the payload is max 65 or 50 bytes (the latter when address filtering is enabled). if the address filtering is expected then addressfiltering must be enabled on the transmitter side as well to prevent address byte to be encrypted. crc check being performed on encrypted data, crcok interrupt will occur "dec ryption time" before payloadready interrupt. www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 54 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 5.5.6. packet filtering SX1231's packet handler offers several mechanisms for packe t filtering, ensuring that only useful packets are made available to the uc, reducing significantly system power consumption and software complexity. 5.5.6.1. sync word based sync word filtering/recognition is used for identifying the start of the paylo ad and also for network identification. as previously described, the sync word recognition block is configured (size, error tolerance, value) in regsyncvalue registers. this information is used, both for appendi ng sync word in tx, and filtering packets in rx. every received packet which does not st art with this locally config ured sync word is autom atically discarded and no interrupt is generated. when the sync word is detected, payloa d reception automatically starts and syncaddressmatch is asserted. 5.5.6.2. address based address filtering can be enabled via the addressfiltering bits. it adds another level of filt ering, above sync word (i.e. sync must match first), typically useful in a multi-node networks where a network id is shared between all nodes (sync word) and each node has its own id (address). two address based filtering options are available: ? addressfiltering = 01 : received address field is compared with internal register nodeaddress . if they match then the packet is accepted and processed, otherwise it is discarded. ? addressfiltering = 10 : received address field is compared with internal registers nodeaddress and broadcastaddress . if either is a match, the received packet is accepted and proc essed, otherwise it is discar ded. this additional check with a constant is useful for implementing broadcast in a multi-node networks please note that the received address byte, as part of the payload, is not stripped off the packet and is made available in the fifo. in addition, nodeaddress and addressfiltering only apply to rx. on tx side, if address filtering is expected, the address byte should simply be put into the fifo like any other byte of the payload. as address filtering requires a sync word match, both features share th e same interrupt flag syncaddressmatch . 5.5.6.3. length based in variable length packet mode, payloadlength must be programmed with the maxi mum payload length permitted. if received length byte is smaller than this maximum then th e packet is accepted and processed, otherwise it is discarded. please note that the received le ngth byte, as part of the payload, is not stri pped off the packet and is made available in the fifo. to disable this function the user should set the value of the payloadlength to 255. 5.5.6.4. crc based the crc check is enabled by setting bit crcon in regpacketconfig1 . it is used for checking the integrity of the message. www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 55 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 ? on tx side a two byte crc checksum is calculated on th e payload part of the packet and appended to the end of the message ? on rx side the checksum is calculated on the received pa yload and compared with the two checksum bytes received. the result of the comparison is stored in bit crcok. by default, if the crc check fails then the fifo is automatically cleared and no inte rrupt is generated. this filtering functio n can be disabled via crcautoclearoff bit and in this case, even if crc fa ils, the fifo is not cleared and only payloadready interrupt goes high. please note that in both cases, the two crc checksum bytes ar e stripped off by the packet handler and only the payload is made available in the fifo. the crc is based on the ccitt polynomial as shown below. this implementation also detects errors due to leading and trailing zeros. figure 33. crc implementation 5.5.7. dc-free data mechanisms the payload to be transmitted may contain long sequences of 1's and 0's, which introduces a dc bias in the transmitted signal. the radio signal thus produced has a non uniform powe r distribution over the occupied channel bandwidth. it also introduces data dependencies in the normal operation of the demo dulator. thus it is useful if the transmitted data is random and dc free. for such purposes, two techniques are made available in th e packet handler: manchester encoding and data whitening. note only one of the two methods should be enabled at a time. 5.5.7.1. manc hester encoding manchester encoding/decoding is enabled if dcfree = 01 and can only be used in packet mode. the nrz data is converted to manchester code by coding '1' as "10" and '0' as "01". in this case, the maximum chip rate is th e maximum bit rate given in the specificatio ns section and the actual bit rate is half the chip rate. manchester encoding and decoding is only applied to the payload and crc checksum while preamble and sync word are kept nrz. however, the chip rate from preamble to crc is the same and defined by bitrate in regbitrate (chip rate = bit rate nrz = 2 x bit rate manchester). manchester encoding/dec oding is thus made transparent for the user, who still provides/retrieves nrz data to/from the fifo. x 14 x 13 x 12 x 11 x 5 x 0 x 15 crc polynomial =x 16 + x 12 + x 5 + 1 * * * x 4 * * * data input www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 56 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 figure 34. manchester encoding/decoding 5.5.7.2. data whitening another technique called whitening or scrambling is widely us ed for randomizing the user data before radio transmission. the data is whitened using a random sequence on the tx side and de-whitened on the rx side using the same sequence. comparing to manchester technique it has the advantage of ke eping nrz data rate i.e. actual bit rate is not halved. the whitening/de-whitening process is enabled if dcfree = 10 . a 9-bit lfsr is used to generate a random sequence. the payload and 2-byte crc checksum is then xored with this random sequence as shown belo w. the data is de-whitened on the receiver side by xoring with the same random sequence. payload whitening/de-white ning is thus made transparent for the user, who still provides/r etrieves nrz data to/from the fifo. figure 35. data whitening ...sync payload... rf chips @ br ... 1 1 1 0 1 0 0 1 0 0 1 0 1 1 0 1 0 ... user/nrz bits manchester off ... 1 1 1 0 1 0 0 1 0 0 1 0 1 1 0 1 0 ... user/nrz bits manchester on ... 1 1 1 0 1 0 0 1 0 0 1 1 ... t 1/br 1/br x 7 x 6 x 5 x 4 x 3 x 2 x 1 x 0 x 8 lfsr polynomial =x 9 + x 5 + 1 transmit data whitened data www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 57 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 6. configuration and status registers 6.1. general description table 21 registers summary address register name reset (built-in) default (recom mended) description 0x00 regfifo 0x00 fifo read/write access 0x01 regopmode 0x04 operating modes of the transceiver 0x02 regdatamodul 0x00 data operation mode and modulation settings 0x03 regbitratemsb 0x1a bit rate setting, most significant bits 0x04 regbitratelsb 0x0b bit rate setting, least significant bits 0x05 regfdevmsb 0x00 frequency deviation setting, most significant bits 0x06 regfdevlsb 0x52 frequency deviation setting, least significant bits 0x07 regfrfmsb 0xe4 rf carrier frequency, most significant bits 0x08 regfrfmid 0xc0 rf carrier frequency, intermediate bits 0x09 regfrflsb 0x00 rf carrier frequency, least significant bits 0x0a regosc1 0x41 rc oscillators settings 0x0b regosc2 0x40 - 0x0c reglowbat 0x02 low battery indicator settings 0x0d reglisten1 0x92 0xa2 listen mode settings 0x0e reglisten2 0xf5 listen mode idle duration 0x0f reglisten3 0x20 listen mode rx duration 0x10 regversion 0x21 semtech id relating the silicon revision 0x11 regpalevel 0x9f pa selection and output power control 0x12 regparamp 0x09 control of the pa ramp time in fsk mode 0x13 regocp 0x0b 0x1b over current protection control 0x14 regagcref 0x40 agc reference level and fsk polarity control 0x15 regagcthresh1 0xb0 agc thresholds control 0x16 regagcthresh2 0x7b agc thresholds control 0x17 regagcthresh3 0x9b agc thresholds control 0x18 reglna 0x08 0x88 lna settings www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 58 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 0x19 regrxbw 0x86 0x55 channel filter bw control 0x1a regafcbw 0x8a 0x8b channel filter bw control during the afc routine 0x1b regookpeak 0x40 ook demodulator selection and control in peak mode 0x1c regookavg 0x80 average threshold control of the ook demodulator 0x1d regookfix 0x06 fixed threshold control of the ook demodulator 0x1e regafcfei 0x10 afc and fei control and status 0x1f regafcmsb 0x00 msb of the frequency correction of the afc 0x20 regafclsb 0x00 lsb of the frequency correction of the afc 0x21 regfeimsb 0x00 msb of the calculated frequency error 0x22 regfeilsb 0x00 lsb of the calculated frequency error 0x23 regrssiconfig 0x02 rssi-related settings 0x24 regrssivalue 0xff rssi value in dbm 0x25 regdiomapping1 0x00 mapping of pins dio0 to dio3 0x26 regdiomapping2 0x05 0x07 mapping of pins dio4 and dio5, clkout frequency 0x27 regirqflags1 0x80 status register: pll lock state, timeout, rssi > threshold... 0x28 regirqflags2 0x00 status register: fifo handling flags, low battery detection... 0x29 regrssithresh 0xff 0xe4 rssi threshold control 0x2a regrxtimeout1 0x00 timeout duration between rx request and rssi detection 0x2b regrxtimeout2 0x00 timeout duration between rssi detection and payloadready 0x2c regpreamblemsb 0x00 preamble length, msb 0x2d regpreamblelsb 0x03 preamble length, lsb 0x2e regsyncconfig 0x98 sync word recognition control 0x2f-0x36 regsyncvalue1-8 0x00 0x01 sync word bytes, 1 through 8 0x37 regpacketconfig1 0x10 packet mode settings 0x38 regpayloadlength 0x40 payload length setting 0x39 regnodeadrs 0x00 node address 0x3a regbroadcastadrs 0x00 broadcast address 0x3b regautomodes 0x00 auto modes settings 0x3c regfifothresh 0x0f 0x8f fifo threshold, tx start condition address register name reset (built-in) default (recom mended) description www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 59 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 note - reset values are auto matically refreshed in the chip at power on reset - default values are the semtech recommended regi ster values, optimizing the device operation - registers for which the default value differs from the re set value are denoted by a * in the tables of section 6 0x3d regpacketconfig2 0x02 packet mode settings 0x3e-0x4d regaeskey1-16 0x00 16 bytes of the cypher key 0x4e regtemp1 0x01 temperature sensor control, adc low power mode control 0x4f regtemp2 0x00 temperature readout 0x58 regtestlna 0x1b sensitivity boost 0x6e regtestook 0x06 0x0c ook demodulator adjustment 0x50 + regtest - internal test registers address register name reset (built-in) default (recom mended) description www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 60 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 6.2. common confi guration registers table 22 common configuration registers name (address) bits variable name mode default value description regfifo (0x00) 7-0 fifo rw 0x00 fifo data input/output regopmode (0x01) 7 sequenceroff rw 0 controls the automatic sequencer (see section 4.2 ): 0 ? operating mode as selected with mode bits in regopmode is automatically reached with the sequencer 1 ? mode is forced by the user 6 listenon rw 0 enables listen mode: 0 ? off (see section 4.3) 1 ? on 5 listenabort w 0 aborts listen mode when set together with listenon=0 and new mode selection in 1 spi access (see section 4.3) always reads 0. 4-2 mode rw 001 transceiver?s operating modes: 000 ? sleep mode (sleep) 001 ? standby mode (stdby) 010 ? frequency synthesizer mode (fs) 011 ? transmitter mode (tx) 100 ? receiver mode (rx) others ? reserved reads the value corresponding to the current chip mode 1-0 - r 00 unused regdatamodul (0x02) 7 - r 0 unused 6-5 datamode rw 00 data processing mode: 00 ? packet mode 01 ? reserved 10 ? continuous mode with bit synchronizer 11 ? continuous mode without bit synchronizer 4-3 modulationtype rw 00 modulation scheme: 00 ? fsk 01 ? ook 10 - 11 ? reserved 2 - r 0 unused 1-0 modulationshaping rw 00 data shaping: in fsk: 00 ? no shaping 01 ? gaussian filter, bt = 1.0 10 ? gaussian filter, bt = 0.5 11 ? gaussian filter, bt = 0.3 in ook: 00 ? no shaping 01 ? filtering with f cutoff = br 10 ? filtering with f cutoff = 2*br 11 ? reserved regbitratemsb (0x03) 7-0 bitrate(15:8) rw 0x1a msb of bit rate (chip rate when manchester encoding is enabled) www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 61 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 regbitratelsb (0x04) 7-0 bitrate(7:0) rw 0x0b lsb of bit rate (chip rate if manchester encoding is enabled) default value: 4.8 kb/s regfdevmsb (0x05) 7-6 - r 00 unused 5-0 fdev(13:8) rw 000000 msb of the frequency deviation regfdevlsb (0x06) 7-0 fdev(7:0) rw 0x52 lsb of the frequency deviation default value: 5 khz regfrfmsb (0x07) 7-0 frf(23:16) rw 0xe4 msb of the rf carrier frequency regfrfmid (0x08) 7-0 frf(15:8) rw 0xc0 middle byte of the rf carrier frequency regfrflsb (0x09) 7-0 frf(7:0) rw 0x00 lsb of the rf carrier frequency default value: frf = 915 mhz (32 mhz xo) regosc1 (0x0a) 7 rccalstart w 0 triggers the calibration of the rc oscillator when set. always reads 0. rc calibration must be triggered in standby mode. see calibration procedure in section 7.3 6 rccaldone r 1 0 ? rc calibration in progress 1 ? rc calibration is over 5-0 - r 000001 unused regosc2 (0x0b) 7-0 - r 0x40 unused reglowbat (0x0c) 7-5 - r 000 unused 4 lowbatmonitor rw - real-time (not latched) output of the low battery detector, when enabled. 3 lowbaton rw 0 low battery detector enable signal 0 ? lowbat off 1 ? lowbat on 2-0 lowbattrim rw 010 trimming of the lowbat threshold: 000 ? 1.695 v 001 ? 1.764 v 010 ? 1.835 v 011 ? 1.905 v 100 ? 1.976 v 101 ? 2.045 v 110 ? 2.116 v 111 ? 2.185 v bitrate fxosc bitrate 15 0 (,) ---------------------------------- - = fdev fstep fdev 15 0 (,) = frf fstep frf 23 0 ; () = www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 62 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 reglisten1 (0x0d) 7-4 listenresol rw 1010 * resolution of listen modes timings (calibrated rc osc): 0101 ? 64 us 1010 ? 4.1 ms 1111 ? 262 ms others ? reserved 3 listencriteria rw 0 criteria for packet acceptance in listen mode: 0 ? signal strength is above rssithreshold 1 ? signal strength is above rssithreshold and syncaddress matched 2-1 listenend rw 01 action taken after acceptance of a packet in listen mode: 00 ? chip stays in rx mode. li sten mode stops and must be disabled (see section 4.3). 01 ? chip stays in rx mode until payloadready or timeout interrupt occurs. it then goes to the mode defined by mode . listen mode stops and must be disabled (see section 4.3). 10 ? chip stays in rx mode until payloadready or timeout interrupt occurs. listen mode then resumes in idle state. fifo content is lost at next rx wakeup. 11 ? reserved 0 - r 0 unused reglisten2 (0x0e) 7-0 listencoefidle rw 0xf5 duration of the idle phase in listen mode. reglisten3 (0x0f) 7-0 listencoefrx rw 0x20 duration of the rx phase in listen mode (startup time included, see section 4.2.3) regversion (0x10) 7-0 version r 0x21 version code of the chip. bits 7-4 give the full revision number; bits 3-0 give the metal mask revision number. sol re listen idle listencoef t listenidle ? = sol re listen rx listencoef t listenrx ? = www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 63 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 6.3. transmitter registers table 23 transmitter registers name (address) bits variable name mode default value description regpalevel (0x11) 7 pa0on rw 1 enables pa0, connected to rfio and lna 6 pa1on rw 0 enables pa1, on pa_boost pin 5 pa2on rw 0 enables pa2, on pa_boost pin 4-0 outputpower rw 11111 output power setting, with 1 db steps pout = -18 + outputpower [dbm] , with pa0 pout = -14 + outputpower [dbm] , with pa1 and pa2 regparamp (0x12) 7-4 - r 0000 unused 3-0 paramp rw 1001 rise/fall time of ramp up/down in fsk 0000 ? 3.4 ms 0001 ? 2 ms 0010 ? 1 ms 0011 ? 500 us 0100 ? 250 us 0101 ? 125 us 0110 ? 100 us 0111 ? 62 us 1000 ? 50 us 1001 ? 40 us 1010 ? 31 us 1011 ? 25 us 1100 ? 20 us 1101 ? 15 us 1110 ? 12 us 1111 ? 10 us regocp (0x13) 7-5 - r 000 unused 4ocpon rw 1 * enables overload current protection (ocp) for the pa: 0 ? ocp disabled 1 ? ocp enabled 3-0 ocptrim rw 1011 trimming of ocp current: 100 ma ocp by default imax 45 5 ocptrim ma () + = www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 64 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 6.4. receiver registers table 24 receiver registers name (address) bits variable name mode default value description regagcref (0x14) 7 - r 0 unused 6 agcautoreferenceon rw 1 0 ? agc reference is forced in agcreferencelevel 1 ? agc reference automatically computed by the chip: agc reference [dbm] = -174 + nf + demodsnr +10.log(2* rxbw ) + agcsnrmargin , with: - nf = 7: lna?s noise figure at maximum gain - demodsnr = 8 db, snr needed by the demodulator - agcsnrmargin , as set in regagcthresh1 - rxbw : single sideband channel filter bandwidth 5-0 agcreferencelevel rw 000000 (-80dbm) to be set as close as possible to the receiver sensitivity when agcautoreferenceon = 0: agc reference [dbm] = -80 - agcreferencelevel [db] regagcthresh1 (0x15) 7-5 agcsnrmargin rw 101 (5db) snr margin used in the receiver sensitivity calculation when the agcautoreference = 1 4-0 agcstep1 rw 10000 (16db) defines the first agc threshold: agcthresh1 = agc reference + agcstep1 regagcthresh2 (0x16) 7-4 agcstep2 rw 0111 (7db) defines the second agc threshold: agcthresh2 = agcthresh1 + agcstep2 3-0 agcstep3 rw 1011 (11db) defines the third agc threshold: agcthresh3 = agcthresh2 + agcstep3 regagcthresh3 (0x17) 7-4 agcstep4 rw 1001 (9db) defines the fourth agc threshold: agcthresh4 = agcthresh3 + agcstep4 3-0 agcstep5 rw 1011 (11db) defines the fifth agc threshold: agcthresh5 = agcthresh4 + agcstep5 reglna (0x18) 7 lnazin rw 1 * lna?s input impedance 0 ? 50 ohms 1 ? 200 ohms 6 lnalowpoweron rw 0 lna and mixers low-power mode: 0 ? normal mode 1 ? low-power mode enabled. power consumption is decreased 5-3 lnacurrentgain r 001 current lna gain, set either manually, or by the agc 2-0 lnagainselect rw 000 lna gain setting: 000 ? gain set by the internal agc loop 001 ? g1 = highest gain 010 ? g2 = highest gain ? 6 db 011 ? g3 = highest gain ? 12 db 100 ? g4 = highest gain ? 24 db 101 ? g5 = highest gain ? 36 db 110 ? g6 = highest gain ? 48 db 111 ? reserved www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 65 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 regrxbw (0x19) 7-5 dccfreq rw 010 * cut-off frequency of the dc offset canceller (dcc): ~4% of the rxbw by default 4-3 rxbwmant rw 10 * channel filter bandwidth control: 00 ? rxbwmant = 16 10 ? rxbwmant = 24 01 ? rxbwmant = 20 11 ? reserved 2-0 rxbwexp rw 101 * channel filter bandwidth control: fsk mode: ook mode: see table 13 for tabulated values regafcbw (0x1a) 7-5 dccfreqafc rw 100 dccfreq parameter used during the afc 4-3 rxbwmantafc rw 01 rxbwmant parameter used during the afc 2-0 rxbwexpafc rw 011 * rxbwexp parameter used during the afc regookpeak (0x1b) 7-6 ookthreshtype rw 01 selects type of threshold in the ook data slicer: 00 ? fixed 10 ? average 01 ? peak 11 ? reserved 5-3 ookpeaktheshstep rw 000 size of each decrement of the rssi threshold in the ook demodulator: 000 ? 0.5 db 001 ? 1.0 db 010 ? 1.5 db 011 ? 2.0 db 100 ? 3.0 db 101 ? 4.0 db 110 ? 5.0 db 111 ? 6.0 db 2-0 ookpeakthreshdec rw 000 period of decrement of the rssi threshold in the ook demodulator: 000 ? once per chip 001 ? once every 2 chips 010 ? once every 4 chips 011 ? once every 8 chips 100 ? twice in each chip 101 ? 4 times in each chip 110 ? 8 times in each chip 111 ? 16 times in each chip regookavg (0x1c) 7-6 ookaveragethreshfilt rw 10 filter coeffi cients in average mode of the ook demodulator: 00 ? f c chip rate / 32. 01 ? f c chip rate / 8. 10 ? f c chip rate / 4. 11 ? f c chip rate / 2. 5-0 - r 000000 unused regookfix (0x1d) 7-0 ookfixedthresh rw 0110 (6db) fixed threshold value (in db) in the ook demodulator. used when ookthrestype = 00 fc 4 rxbw 2 2 dccfreq 2 + ----------------------------------------- - = rxbw fxosc rxbwmant 2 rxbwexp 2 + ----------------------------------------------------------------- - = rxbw fxosc rxbwmant 2 rxbwexp 3 + ----------------------------------------------------------------- - = www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 66 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 regafcfei (0x1e) 7 - r 0 unused 6 feidone r 0 0 ? fei is on-going 1 ? fei finished 5 feistart w 0 triggers a fei measurement when set. always reads 0. 4 afcdone r 1 0 ? afc is on-going 1 ? afc has finished 3 afcautoclearon rw 0 only valid if afcautoon is set 0 ? afc register is not cleared before a new afc phase 1 ? afc register is cleared before a new afc phase 2 afcautoon rw 0 0 ? afc is performed each time afcstart is set 1 ? afc is performed each time rx mode is entered 1 afcclear w 0 clears the afcvalue when set. always reads 0 0 afcstart w 0 triggers an afc when set. always reads 0. regafcmsb (0x1f) 7-0 afcvalue(15:8) rw 0x00 msb of the afcvalue, 2?s complement format regafclsb (0x20) 7-0 afcvalue(7:0) rw 0x00 lsb of the afcvalue, 2?s complement format frequency correction = afcvalue x fstep regfeimsb (0x21) 7-0 feivalue(15:8) r - msb of the measured frequency offset, 2?s complement regfeilsb (0x22) 7-0 feivalue(7:0) r - lsb of the measured frequency offset, 2?s complement frequency error = feivalue x fstep regrssiconfig (0x23) 7-4 - r 0000 unused 3 fastrx rw 0 fast or standard rx wakeup sequence 0 ? 2 rssi samples over rssithreshold are required to start the receiver 1 ? 1 rssi sample over rssithreshold is enough to start the receiver 2 - r 0 unused 1 rssidone r 1 0 ? rssi is on-going 1 ? rssi sampling is finished, result available 0 rssistart w 0 trigger a rssi measurement when set. always reads 0. regrssivalue (0x24) 7-0 rssivalue r 0xff absolute value of the rssi in dbm, 0.5db steps. rssi = - rssivalue/2 [dbm] www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 67 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 6.5. irq and pin mapping registers table 25 irq and pin mapping registers name (address) bits variable name mode default value description regdiomapping1 (0x25) 7-6 dio0mapping rw 00 mapping of pins dio0 to dio5 see table 19 for mapping in continuous mode see table 20 for mapping in packet mode 5-4 dio1mapping rw 00 3-2 dio2mapping rw 00 1-0 dio3mapping rw 00 regdiomapping2 (0x26) 7-6 dio4mapping rw 00 5-4 dio5mapping rw 00 3 - r 0 unused 2-0 clkout rw 111 * selects clkout frequency: 000 ? fxosc 001 ? fxosc / 2 010 ? fxosc / 4 011 ? fxosc / 8 100 ? fxosc / 16 101 ? fxosc / 32 110 ? rc (automatically enabled) 111 ? off regirqflags1 (0x27) 7 modeready r 1 set when the operation mode requested in mode , is ready - sleep: entering sleep mode - standby: xo is running - fs: pll is locked - rx: rssi sampling starts - tx: pa ramp-up completed cleared when changing operating mode. 6 rxready r 0 set in rx mode, after rssi, agc and afc. cleared when leaving rx. 5 txready r 0 set in tx mode, after pa ramp-up. cleared when leaving tx. 4 plllock r 0 set (in fs, rx or tx) when the pll is locked. cleared when it is not. 3 rssi rwc 0 set in rx when the rssivalue exceeds rssithreshold. cleared when leaving rx. 2 timeout r 0 set when a timeout occurs (see timeoutrxstart and timeoutrssithresh ) cleared when leaving rx or fifo is emptied. 1 automode r 0 set when entering intermediate mode. cleared when exiting intermediate mode. please note that in sleep mode a small delay can be observed between automode interrupt and the corresponding enter/exit condition. 0 syncaddressmatch r/rwc 0 set when sync and address (if enabled) are detected. cleared when leaving rx or fifo is emptied. this bit is read only in packet mode, rwc in continuous mode www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 68 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 regirqflags2 (0x28) 7 fifofull r 0 set when fifo is full (i.e. contains 66 bytes), else cleared. 6 fifonotempty r 0 set when fifo contains at least one byte, else cleared 5 fifolevel r 0 set when the number of bytes in the fifo strictly exceeds fifothreshold , else cleared. 4 fifooverrun rwc 0 set when fifo overrun occurs. (except in sleep mode) flag(s) and fifo are cleared when this bit is set. the fifo then becomes immediately available for the next transmission / reception. 3 packetsent r 0 set in tx when the complete packet has been sent. cleared when exiting tx. 2 payloadready r 0 set in rx when the payload is ready (i.e. last byte received and crc, if enabled and crcautoclearoff is cleared , is ok). cleared when fifo is empty. 1 crcok r 0 set in rx when the crc of the payload is ok. cleared when fifo is empty. 0 lowbat rwc - set when the battery voltage drops below the low battery threshold. cleared only when set by the user. regrssithresh (0x29) 7-0 rssithreshold rw 0xe4 * rssi trigger level for rssi interrupt : - rssithreshold / 2 [dbm] regrxtimeout1 (0x2a) 7-0 timeoutrxstart rw 0x00 timeout interrupt is generated timeoutrxstart *16*t bit after switching to rx mode if rssi interrupt doesn?t occur (i.e. rssivalue > rssithreshold) 0x00: timeoutrxstart is disabled regrxtimeout2 (0x2b) 7-0 timeoutrssithresh rw 0x00 timeout interrupt is generated timeoutrssithresh *16*t bit after rssi interrupt if payloadready interrupt doesn?t occur. 0x00: timeoutrssithresh is disabled www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 69 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 6.6. packet engine registers table 26 packet engine registers name (address) bits variable name mode default value description regpreamblemsb (0x2c) 7-0 preamblesize(15:8) rw 0x00 size of the preamble to be sent (from txstartcondition fulfilled). (msb byte) regpreamblelsb (0x2d) 7-0 preamblesize(7:0) rw 0x03 size of the preamble to be sent (from txstartcondition fulfilled). (lsb byte) regsyncconfig (0x2e) 7 syncon rw 1 enables the sync word generation and detection: 0 ? off 1 ? on 6 fifofillcondition rw 0 fifo filling condition: 0 ? if syncaddress interrupt occurs 1 ? as long as fifofillcondition is set 5-3 syncsize rw 011 size of the sync word: ( syncsize + 1) bytes 2-0 synctol rw 000 number of tole rated errors in sync word regsyncvalue1 (0x2f) 7-0 syncvalue(63:56) rw 0x00 1 st byte of sync word. (msb byte) used if syncon is set. regsyncvalue2 (0x30) 7-0 syncvalue(55:48) rw 0x01 * 2 nd byte of sync word used if syncon is set and (syncsize +1) >= 2. regsyncvalue3 (0x31) 7-0 syncvalue(47:40) rw 0x01 * 3 rd byte of sync word. used if syncon is set and (syncsize +1) >= 3. regsyncvalue4 (0x32) 7-0 syncvalue(39:32) rw 0x01 * 4 th byte of sync word. used if syncon is set and (syncsize +1) >= 4. regsyncvalue5 (0x33) 7-0 syncvalue(31:24) rw 0x01 * 5 th byte of sync word. used if syncon is set and (syncsize +1) >= 5. regsyncvalue6 (0x34) 7-0 syncvalue(23:16) rw 0x01 * 6 th byte of sync word. used if syncon is set and (syncsize +1) >= 6. regsyncvalue7 (0x35) 7-0 syncvalue(15:8) rw 0x01 * 7 th byte of sync word. used if syncon is set and (syncsize +1) >= 7. regsyncvalue8 (0x36) 7-0 syncvalue(7:0) rw 0x01 * 8 th byte of sync word. used if syncon is set and (syncsize +1) = 8. www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 70 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 regpacketconfig1 (0x37) 7 packetformat rw 0 defines the packet format used: 0 ? fixed length 1 ? variable length 6-5 dcfree rw 00 defines dc-free encoding/decoding performed: 00 ? none (off) 01 ? manchester 10 ? whitening 11 ? reserved 4 crcon rw 1 enables crc calculation/check (tx/rx): 0 ? off 1 ? on 3 crcautoclearoff rw 0 defines the behavior of the packet handler when crc check fails: 0 ? clear fifo and restart new packet reception. no payloadready interrupt issued. 1 ? do not clear fifo. payloadready interrupt issued. 2-1 addressfiltering rw 00 defines address based filtering in rx: 00 ? none (off) 01 ? address field must match nodeaddress 10 ? address field must match nodeaddress or broadcastaddress 11 ? reserved 0 - rw 0 unused regpayloadlength (0x38) 7-0 payloadlength rw 0x40 if packetformat = 0 (fixed), payload length. if packetformat = 1 (variable), max length in rx, not used in tx. regnodeadrs (0x39) 7-0 nodeaddress rw 0x00 node address used in address filtering. regbroadcastadrs (0x3a) 7-0 broadcastaddress rw 0x00 broadcast address used in address filtering. regautomodes (0x3b) 7-5 entercondition rw 000 interrupt condition for entering the intermediate mode: 000 ? none (automodes off) 001 ? rising edge of fifonotempty 010 ? rising edge of fifolevel 011 ? rising edge of crcok 100 ? rising edge of payloadready 101 ? rising edge of syncaddress 110 ? rising edge of packetsent 111 ? falling edge of fifonotempty (i.e. fifo empty) 4-2 exitcondition rw 000 interrupt condition for exiting the intermediate mode: 000 ? none (automodes off) 001 ? falling edge of fifonotempty (i.e. fifo empty) 010 ? rising edge of fifolevel or timeout 011 ? rising edge of crcok or timeout 100 ? rising edge of payloadready or timeout 101 ? rising edge of syncaddress or timeout 110 ? rising edge of packetsent 111 ? rising edge of timeout 1-0 intermediatemode rw 00 intermediate mode: 00 ? sleep mode (sleep) 01 ? standby mode (stdby) 10 ? receiver mode (rx) 11 ? transmitter mode (tx) www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 71 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 regfifothresh (0x3c) 7 txstartcondition rw 1 * defines the condition to st art packet transmission : 0 ? fifolevel (i.e. the number of bytes in the fifo exceeds fifothreshold) 1 ? fifonotempty (i.e. at least one byte in the fifo) 6-0 fifothreshold rw 0001111 used to trigger fifolevel interrupt. regpacketconfig2 (0x3d) 7-4 interpacketrxdelay rw 0000 after payloadready occurred, defines the delay between fifo empty and the start of a new rssi phase for next packet. must match the transmitter?s pa ramp-down time. - tdelay = 0 if interpacketrxdelay >= 12 - tdelay = (2 interpacketrxdelay ) / bitrate otherwise 3 - rw 0 unused 2 restartrx w 0 forces a new rssi phase to start a new packet reception. always reads 0. 1 autorxrestarton rw 1 enables automatic rx restart (rssi phase) after payloadready occurred and packet has been completely read from fifo: 0 ? off. restartrx can be used. 1 ? on. rx automatically restarted after interpacketrxdelay . 0 aeson rw 0 enable the aes encryption/decryption: 0 ? off 1 ? on (payload limited to 66 bytes maximum) regaeskey1 (0x3e) 7-0 aeskey(127:120) w 0x00 1 st byte of cipher key (msb byte) regaeskey2 (0x3f) 7-0 aeskey(119:112) w 0x00 2 nd byte of cipher key regaeskey3 (0x40) 7-0 aeskey(111:104) w 0x00 3 rd byte of cipher key regaeskey4 (0x41) 7-0 aeskey(103:96) w 0x00 4 th byte of cipher key regaeskey5 (0x42) 7-0 aeskey(95:88) w 0x00 5 th byte of cipher key regaeskey6 (0x43) 7-0 aeskey(87:80) w 0x00 6 th byte of cipher key regaeskey7 (0x44) 7-0 aeskey(79:72) w 0x00 7 th byte of cipher key regaeskey8 (0x45) 7-0 aeskey(71:64) w 0x00 8 th byte of cipher key regaeskey9 (0x46) 7-0 aeskey(63:56) w 0x00 9 th byte of cipher key regaeskey10 (0x47) 7-0 aeskey(55:48) w 0x00 10 th byte of cipher key regaeskey11 (0x48) 7-0 aeskey(47:40) w 0x00 11 th byte of cipher key regaeskey12 (0x49) 7-0 aeskey(39:32) w 0x00 12 th byte of cipher key regaeskey13 (0x4a) 7-0 aeskey(31:24) w 0x00 13 th byte of cipher key regaeskey14 (0x4b) 7-0 aeskey(23:16) w 0x00 14 th byte of cipher key www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 72 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 6.7. temperature sensor registers table 27 temperature sensor registers 6.8. test registers table 28 test registers regaeskey15 (0x4c) 7-0 aeskey(15:8) w 0x00 15 th byte of cipher key regaeskey16 (0x4d) 7-0 aeskey(7:0) w 0x00 16 th byte of cipher key (lsb byte) name (address) bits variable name mode default value description regtemp1 (0x4e) 7-4 - r 0000 unused 3 tempmeasstart w 0 triggers the temperature measurement when set. always reads 0. 2 tempmeasrunning r 0 set to 1 while the temperature measurement is running. toggles back to 0 when the measurement has completed. the receiver can not be used while measuring temperature 1 - r 0 unused 0 adclowpoweron rw 1 adc low-power mode: 0 ? normal mode 1 ? low-power mode enabled. power consumption is decreased regtemp2 (0x4f) 7-0 tempvalue r - measured temperature -1c per lsb needs calibration for accuracy name (address) bits variable name mode default value description regtestlna (0x58) 7-0 sensitivityboost rw 0x1b high sensit ivity or normal sensitivity mode: 0x1b ? normal mode 0x2d ? high sensitivity mode regtestook (0x6e) 7-0 ookdeltathreshold rw 0x0c * tweaks the ook peak threshold www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 73 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 7. application information 7.1. crystal resonator specification table 29 shows the crystal resonator sp ecification for the crystal reference oscillator circuit of the SX1231. this specification covers the full range of operation of the SX1231 and is employed in the reference design. table 29 crystal specification notes - the initial frequency tolerance, temper ature stability and ageing performance should be chosen in accordance with the target operating temperature range and the receiver bandwidth selected. - the loading capacitance should be applied externally, and adapted to the actual cload specification of the xtal. - a minimum xtal frequency of 28 mhz is required to cover the 863-870 mhz band, 29 mhz for the 902-928 mhz band 7.2. reset of the chip a power-on reset of the SX1231 is trig gered at power up. additionally, a manual reset can be issued by controlling pin 6. 7.2.1. por if the application requires the disconnectio n of vdd from the SX1231, despite of th e extremely low sleep mode current, the user should wait for 10 ms from of the end of the por cycle before commencing communications over the spi bus. pin 6 (reset) should be left floating during the por sequence. figure 36. por timing diagram please note that any clkout activity can also be used to detect that the chip is ready. symbol description conditions min typ max unit fxosc xtal frequency 26 - 32 mhz rs xtal serial resistance - 30 140 ohms c0 xtal shunt capacitance - 2.8 7 pf cload external foot capacitance on each pin xta and xtb 8 16 22 pf wait for 10 ms vdd pin 6 (output) chip is ready from this point on undefined www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 74 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 7.2.2. manual reset a manual reset of the SX1231 is possible even for applicat ions in which vdd cannot be physically disconnected. pin 6 should be pulled high for a hundred microseconds, and then releas ed. the user should then wait for 5 ms before using the chip. figure 37. manual reset timing diagram note whilst pin 6 is driven high, an ov er current consumption of up to ten milliamps can be seen on vdd. 7.3. rc oscill ator calibration the calibration of the in ternal oscillator is required when using the list en mode of the SX1231. the calibration procedure source code is the following: 7.4. reference design please contact your semtech represen tative for evaluation tools, refere nce designs and design assistance. vdd > 100 us chip is ready from this point on pin 6 ( in p ut ) high-z high-z ??1?? wait for 5 ms /////// rc calibration (once at por) /////// setrfmode(rf_standby); writeregister(0x57, 0x80); writeregister(reg_osc1, readregister(reg_osc1) | 0x80); while (readregister(reg_osc1) & 0x40 == 0x00); writeregister(reg_osc1, readregister(reg_osc1) | 0x80); while (readregister(reg_osc1) & 0x40 == 0x00); writeregister(0x57, 0x00); //////////////////////////////////////////// www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 75 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 8. packaging information 8.1. package outline drawing the SX1231 is available in a 24-lead qfn package as show in figure 38. figure 38. package outline drawing 8.2. recommended land pattern figure 39. recommended land pattern millimeters 0.65 bsc 0.00 a1 e1 aaa bbb n e l a2 d1 d e b 0.35 4.90 4.90 3.20 - 0.25 dim a dimensions 0.80 min - 0.05 5.10 5.10 3.30 0.45 0.35 0.40 0.10 0.08 24 5.00 (0.20) 3.25 5.00 0.30 - 1.00 max - nom b aaa c 3.20 3.25 3.30 d e a a2 a1 e/2 e bxn lxn e/2 d/2 d1 e1 c seating plane 1 2 n bbb c a b coplanarity applies to the exposed pad as well as the terminals. controlling dimensions are in millimeters (angles in degrees). notes: 2. 1. a pin 1 indicator (laser mark) k h g z (c) y p x this land pattern is for reference purposes only. consult your manufacturing group to ensure your notes: 2. dim x y h k p c g millimeters (4.90) 0.35 0.80 3.30 0.65 3.30 4.10 dimensions company's manufacturing guidelines are met. 5.70 z failure to do so may compromise the thermal and/or functional performance of the device. shall be connected to a system ground plane. thermal vias in the land pattern of the exposed pad 3. 4. square package-dimensions apply in both x and y directions. controlling dimensions are in millimeters (angles in degrees). 1. www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 76 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 8.3. thermal impedance the thermal impedance of this package is: theta ja = 29 c/w typ. , calculated from a package in still air, on a 4-layer fr4 pcb, as per the jedec standard. 8.4. tape & reel specification figure 40. tape & reel specification note single sprocket holes www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 77 SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 9. revision history table 30 revision history revision date comment 1 oct 2009 first final datasheet version 2 nov 2009 clarification and adjustment on the specification corrections throughout the document improve agc setting description, temp sensor description www.datasheet.co.kr datasheet pdf - http://www..net/
www.semtech.com page 78 semtech corporation advanced communication and sensing products division 200 flynn road, ca marillo, ca 93012 phone: (805) 498-2111 fax: (805) 498-3804 e-mail: sales@semtech.com acsupport@semtech.com internet: http://www.semtech.com contact information ? semtech 2009 a ll rights reserved. reproduction in whole or in part is prohib ited without the prior written consent of the copyright owner. th e information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed without notice. no liability will be accepted by the publisher for any consequence of its use. publication thereof does not convey nor imply any license under patent or ot her industrial or intellectual property rights. semtech assumes no responsibility or liability whatsoever for any failure or unexpected operation resulting from misuse, neglect improper installation, repair or improper handling or unusual physical or electrical stress including, but not limited to, exposure to parameters beyond the specified maximum ratings or operation outside the specified range. semtech products are not designed, intended, auth orized or warranted to be suitable for use in life-support applications, devices or system s or other critical applications. inclusion of semtech products in such applications is understood to be undertaken solely at the customer?s own risk. should a customer purchase or use semtech product s for any such unauthorized application, the customer shall indemnify and hold semtech and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs damages and attorney fees which could arise. SX1231 advanced communica tions & sensing datasheet rev 2 - nov 2009 www.datasheet.co.kr datasheet pdf - http://www..net/


▲Up To Search▲   

 
Price & Availability of SX1231

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X